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