'use no memo'; import { Table } from '@tanstack/react-table'; import { CheckboxTristate } from '@/components/ui/Input'; 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;