2025-12-05 16:19:13 +07:00
|
|
|
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
|
2025-12-25 15:31:24 +07:00
|
|
|
import FilesTable from '@/app/ui/dashboard/files-table';
|
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-26 11:02:35 +07:00
|
|
|
import { getAllowedFilesExtensions } from '@/app/actions/fileUpload';
|
2025-12-24 15:41:06 +07:00
|
|
|
|
|
|
|
|
export default async function Page() {
|
2025-12-25 15:31:24 +07:00
|
|
|
const FILE_TYPE = "image";
|
|
|
|
|
const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);
|
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-25 15:31:24 +07:00
|
|
|
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={file_extension} maxFileSize={max_file_size} />
|
2025-12-16 20:26:17 +07:00
|
|
|
<FilesTable />
|
2025-12-05 16:19:13 +07:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|