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

63 lines
1.3 KiB
TypeScript
Raw Normal View History

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';
import {StackedBarChart} from '@/app/components/StackedBarChart';
const data = [
{
name: 'File A',
checks: 4000,
violations: 2000
},
{
name: 'File B',
checks: 3000,
violations: 1400
},
{
name: 'File C',
checks: 2000,
violations: 1000
},
{
name: 'File D',
checks: 2780,
violations: 1000
},
{
name: 'File E',
checks: 5090,
violations: 4800
},
{
name: 'File F',
checks: 5390,
violations: 3800
},
{
name: 'File H',
checks: 4000,
violations: 1500
}
];
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" />
<div className="flex justify-between flex-wrap gap-8">
<ProtectionSummary />
<div className="protection-overview grow">
<StackedBarChart data={data} />
</div>
</div>
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>
)
}