Files
no-copy-frontend/src/app/[locale]/pages/marking-photo/page.tsx
T

26 lines
936 B
TypeScript
Raw Normal View History

2025-12-05 16:19:13 +07:00
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
2025-12-24 15:41:06 +07:00
import PageTitle from '@/app/ui/page-title';
2025-12-23 18:56:48 +07:00
import UploadSectionFile from '@/app/components/upload-section-file';
2025-12-16 20:26:17 +07:00
import FilesTable from '@/app/ui/dashboard/files-table';
2025-12-24 15:41:06 +07:00
import { getAllowedFilesExtensions } from '@/app/actions/file-upload';
2025-12-24 21:36:59 +07:00
const ALLOWED_EXTENSIONS: string[] = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
2025-12-24 15:41:06 +07:00
const FILE_TYPE = "IMAGE"
2025-12-24 21:36:59 +07:00
const MAX_SIZE = 1048576000;
2025-12-24 15:41:06 +07:00
export default async function Page() {
2025-12-24 21:36:59 +07:00
/* const allowedFilesExtensions = await getAllowedFilesExtensions(FILE_TYPE);
console.log(allowedFilesExtensions);
console.log(allowedFilesExtensions); */
2025-12-05 16:19:13 +07:00
return (
<div>
2025-12-24 15:41:06 +07:00
<PageTitle title="image-protection" />
2025-12-05 16:19:13 +07:00
<ProtectionSummary />
2025-12-24 21:36:59 +07:00
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={ALLOWED_EXTENSIONS} maxFileSize={MAX_SIZE} />
2025-12-17 12:52:55 +07:00
{/* <TestSection /> */}
2025-12-16 20:26:17 +07:00
<FilesTable />
2025-12-16 15:03:32 +07:00
{/* <ProtectedFilesTable /> */}
2025-12-05 16:19:13 +07:00
</div>
)
}