import { CellContext } from '@tanstack/react-table'; import { CheckboxCell } from '@/ui/components/table/CheckboxCell'; import { SelectAllCheckbox } from '@/ui/components/table/SelectAllCheckbox'; export function getCheckBoxColumn() { return { id: 'select', header: ({ table }: any) => ( table.toggleAllRowsSelected(newValue)} /> ), cell: (props: CellContext) => ( props.row.toggleSelected(newValue)} /> ), size: 32, maxSize: 32, }; }