mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
![]() |
import { Row } from '@tanstack/react-table';
|
||
|
|
||
|
import Checkbox from '../Common/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;
|