import { Table } from '@tanstack/react-table'; import CheckboxTristate from '@/components/ui/CheckboxTristate'; interface SelectAllProps { table: Table; setLastSelected: React.Dispatch>; } function SelectAll({ table, setLastSelected }: SelectAllProps) { function handleChange(value: boolean | null) { setLastSelected(undefined); table.toggleAllPageRowsSelected(value !== false); } return ( ); } export default SelectAll;