import { formatDate } from '@/utils/date'; import type { ColumnDef } from '@tanstack/react-table'; import { IServiceProject } from '@mixan/db'; import type { Project as IProject } from '@mixan/db'; import { ProjectActions } from './ProjectActions'; export type Project = IProject; export const columns: ColumnDef[] = [ { accessorKey: 'name', header: 'Name', }, { accessorKey: 'createdAt', header: 'Created at', cell({ row }) { const date = row.original.createdAt; return
{formatDate(date)}
; }, }, { id: 'actions', header: 'Actions', cell: ({ row }) => , }, ];