import type { ColumnDef } from "@tanstack/react-table";
import type { TestDate } from "../../types/testdate";

export const columns: ColumnDef<TestDate>[] = [
  {
    accessorKey: "date",
    header: "Test Date",
  },
  {
    accessorKey: "deadline",
    header: "Registration Deadline",
  },
  {
    accessorKey: "latedeadline",
    header: "Late Registration Deadline",
  },
  {
    accessorKey: "is_digital",
    header: "Action",
    cell: ({ row }) => <span>{row.original.is_digital ? "Yes" : "No"}</span>,
  },
];
