feat(fe): file uploading

This commit is contained in:
Junyan Qin
2025-07-12 17:15:07 +08:00
parent 234b61e2f8
commit d78a329aa9
12 changed files with 937 additions and 59 deletions
@@ -0,0 +1,24 @@
'use client';
import { ColumnDef } from '@tanstack/react-table';
import { useTranslation } from 'react-i18next';
export type DocumentFile = {
id: string;
name: string;
status: string;
};
export const columns = (): ColumnDef<DocumentFile>[] => {
const { t } = useTranslation();
return [
{
accessorKey: 'name',
header: t('knowledge.documentsTab.name'),
},
{
accessorKey: 'status',
header: t('knowledge.documentsTab.status'),
},
];
};