ConceptPortal-public/rsconcept/frontend/src/components/ui/DataTable/SelectRow.tsx

14 lines
348 B
TypeScript
Raw Normal View History

2023-09-10 20:17:18 +03:00
import { Row } from '@tanstack/react-table';
import Checkbox from '@/components/ui/Checkbox';
2023-09-10 20:17:18 +03:00
interface SelectRowProps<TData> {
2023-12-28 14:04:44 +03:00
row: Row<TData>;
2023-09-10 20:17:18 +03:00
}
2023-12-28 14:04:44 +03:00
function SelectRow<TData>({ row }: SelectRowProps<TData>) {
return <Checkbox tabIndex={-1} value={row.getIsSelected()} setValue={row.getToggleSelectedHandler()} />;
2023-09-10 20:17:18 +03:00
}
2023-12-28 14:04:44 +03:00
export default SelectRow;