import { ChevronDown, ChevronUp } from 'lucide-react'; import { ColumnDef } from '@tanstack/react-table'; import { Button } from '@@/buttons'; export function buildExpandColumn< T extends Record >(): ColumnDef { return { id: 'expand', header: ({ table }) => { const hasExpandableItems = table.getExpandedRowModel().rows.length > 0; return ( hasExpandableItems && (