mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-28 14:00:36 +03:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
import { Row } from '@tanstack/react-table';
|
|
|
|
import Checkbox from '@/components/ui/Checkbox';
|
|
|
|
interface SelectRowProps<TData> {
|
|
row: Row<TData>;
|
|
}
|
|
|
|
function SelectRow<TData>({ row }: SelectRowProps<TData>) {
|
|
return <Checkbox tabIndex={-1} value={row.getIsSelected()} setValue={row.getToggleSelectedHandler()} />;
|
|
}
|
|
|
|
export default SelectRow;
|