"use client";

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

export const purchaseColumns: ColumnDef<Purchase>[] = [
  {
    accessorKey: "user",
    header: "User",
  },
  {
    accessorKey: "package",
    header: "Package",
  },
  {
    accessorKey: "credits",
    header: "Credits",
  },
  {
    accessorKey: "amount",
    header: "Amount",
  },
  {
    accessorKey: "date",
    header: "Date",
  },
  {
    accessorKey: "status",
    header: "Status",
    cell: ({ row }) => (
      <StatusBadge status={row.original.status} />
    ),
  },
];