import FilesTable from '@/app/ui/dashboard/files-table';
import UploadSectionFile from '@/app/components/UploadSectionFile';
import { getAllowedFilesExtensions } from '@/app/actions/fileUpload';
import PageTitleColorFrame from '@/app/ui/page-title-color-frame';
import ProtectionStatistic from '@/app/ui/marking-page/new/protection-statistic';

export default async function Page() {
	const FILE_TYPE = "document";
	const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);

	return (
		<div>
			<PageTitleColorFrame
				title="document-protection"
				description="multi-layered-protection-for-your-document"
			/>
			<ProtectionStatistic fileType={FILE_TYPE} />
			<UploadSectionFile
				fileType={FILE_TYPE}
				allowedExtensions={file_extension}
				maxFileSize={max_file_size}
			/>
			<FilesTable fileType={FILE_TYPE} />
		</div>
	);
}