"use client";

import { ColumnDef } from "@tanstack/react-table";
import { Registration } from "../../../../../../types/dashboard";
import StatusBadge from "../../../../../ui/StatusBadge";

export const registrationColumns: ColumnDef<Registration>[] = [
  {
    accessorKey: "user",
    header: "User",
  },
  {
    accessorKey: "email",
    header: "Email",
  },
  {
    accessorKey: "registeredOn",
    header: "Registered On",
  },
  {
    accessorKey: "status",
    header: "Status",
    cell: ({ row }) => (
      <StatusBadge status={row.original.status} />
    ),
  },
];