import { ColumnDef } from '@tanstack/react-table';

export type Group = {
  no: number;
  created_at: Date;
  name: string;
  status: string;
  description: string;
};

export const columns: ColumnDef<Group>[] = [
  {
    accessorKey: 'no',
    header: 'ID'
  },
  {
    accessorKey: 'created_at',
    header: 'Created Date',
    cell: ({ row }) => new Date(row.original.created_at).toLocaleDateString()
  },
  {
    accessorKey: 'name',
    header: 'Name'
  },
  {
    accessorKey: 'status',
    header: 'Status'
  },
  {
    accessorKey: 'description',
    header: 'Description'
  },
  // {
  //   id: 'actions',
  //   header: 'Actions'
  // }
];
