"use client"; import { ColumnDef } from "@tanstack/react-table"; import { DataTableColumnHeader } from "@/components/ui/table"; import { DataTableRowActions } from "./data-table-row-actions"; import { DateCell, EmailCell, LastUsedCell, NameCell, PrefixCell, StatusCell, } from "./table-cells"; import { EnrichedApiKey } from "./types"; export const createApiKeyColumns = ( onEdit: (apiKey: EnrichedApiKey) => void, onRevoke: (apiKey: EnrichedApiKey) => void, ): ColumnDef[] => [ { accessorKey: "name", header: ({ column }) => ( ), cell: ({ row }) => , }, { accessorKey: "prefix", header: ({ column }) => ( ), cell: ({ row }) => , }, { id: "email", header: "Email", cell: ({ row }) => , enableSorting: false, }, { accessorKey: "inserted_at", header: ({ column }) => ( ), cell: ({ row }) => , }, { accessorKey: "last_used_at", header: "Last Used", cell: ({ row }) => , enableSorting: false, }, { accessorKey: "expires_at", header: ({ column }) => ( ), cell: ({ row }) => , }, { accessorKey: "revoked", header: ({ column }) => ( ), cell: ({ row }) => , }, { id: "actions", header: "", cell: ({ row }) => { return ( ); }, }, ];