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