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.getCanSomeRowsExpand(); return ( hasExpandableItems && (