"use client"; import { DataTableColumnHeader } from "./data-table-column-header"; import { CellAction } from "./cell-action"; import { ColumnDef } from "@tanstack/react-table"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/hover-card"; import { Checkbox } from "@/components/ui/checkbox"; import { Organization } from "@/types/organization"; import { formatDate } from "@/lib/format-date"; import { Account } from "@/types/account"; export const columns: ColumnDef[] = [ { id: "select", header: ({ table }) => ( table.toggleAllPageRowsSelected(!!value)} aria-label="Select all" className="translate-y-[2px]" /> ), cell: ({ row }) => ( row.toggleSelected(!!value)} aria-label="Select row" className="translate-y-[2px]" /> ), enableSorting: false, enableHiding: false, }, // { // accessorKey: "industry", // header: ({ column }) => ( // // ), // cell: ({ row }) => { // return ( //
// // //

// {row.getValue("industry")} //

//
// // {/* */} // {row.getValue("industry")} // {/* */} // {/* */} // //
//
// ); // }, // filterFn: (row, id, value) => { // return value.includes(row.getValue(id)); // }, // }, // { // accessorKey: "contactPerson", // header: ({ column }) => ( // // ), // cell: ({ row }) => { // return ( //
// // //

{row.getValue("contactPerson")}

// {/*

// {row.getValue("contactPerson")} //

*/} //
// // {/* */} // {row.getValue("contactPerson")} // {/* */} // {/* */} // //
//
// ); // }, // }, { accessorKey: "email", header: ({ column }) => ( ), cell: ({ row }) => { return (

{row.getValue("email")}

{/*

{row.getValue("email")}

*/}
{/* */} {row.getValue("email")} {/* */} {/* */}
); }, }, { accessorKey: "organization", header: ({ column }) => ( ), cell: ({ row }) => { return (
{/*

{row.getValue("email")}

*/}

{row.getValue("organization")}

{/* */} {row.getValue("organization")} {/* */} {/* */}
); }, }, { accessorKey: "accountHistory", header: ({ column }) => ( ), cell: ({ row }) => { return (

{row.getValue("accountHistory")}

{/*

{row.getValue("accountHistory")}

*/}
{/* */} {row.getValue("accountHistory")} {/* */} {/* */}
); }, filterFn: (row, id, value) => { return value.includes(row.getValue(id)); }, }, { accessorKey: "created_at", header: ({ column }) => ( ), cell: ({ row }) => { return

{formatDate(row.getValue("created_at"))}

; }, filterFn: (row, id, value) => { return value.includes(row.getValue(id)); }, }, { id: "actions", header: ({ column }) => ( ), cell: ({ row }) => , }, ];