import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog'; import { ScrollArea } from '@/components/ui/scroll-area'; import DocumentViewer from '@/pages/course-player/partials/document-viewer'; import { ColumnDef } from '@tanstack/react-table'; import { ArrowUpDown, Edit } from 'lucide-react'; import ApplicationApproval from './application-approval'; const ApplicationsTableColumn = (translate: LanguageTranslations): ColumnDef[] => { const { table } = translate; return [ { accessorKey: 'name', header: ({ column }) => { return (
); }, cell: ({ row }) => (

{row.original.user.name}

), }, { accessorKey: 'resume', header: table.resume, cell: ({ row }) => (
{table.resume}
), }, { accessorKey: 'status', header: table.status, cell: ({ row }) => (
{row.original.status}
), }, { id: 'actions', header: () =>
{table.action}
, cell: ({ row }) => (
} />
), }, ]; }; export default ApplicationsTableColumn;