import type { ColumnDef } from "@tanstack/react-table"; import { Checkbox } from "~/components/ui/checkbox"; import type { Anggota } from "~/types/api/anggota"; import { CellAction } from "./cell-action"; export const columns: ColumnDef[] = [ { id: "select", header: ({ table }) => ( table.toggleAllPageRowsSelected(!!value)} /> ), cell: ({ row }) => ( row.toggleSelected(!!value)} /> ), enableSorting: false, enableHiding: false, }, { accessorKey: "nik", header: "NIK", }, { accessorKey: "nama", header: "NAMA LENGKAP", cell: ({ row }) => { return ( {row.original.nama ? row.original.nama : "Unknown User"} ); }, }, { accessorKey: "no_hp", header: "NO HP", }, { accessorKey: "role", header: "MEMBER", }, { accessorKey: "status", header: "STATUS", cell: ({ row }) => { return ( {row.original.status} ); }, }, { id: "actions", header: "AKSI", cell: ({ row }) => , }, ];