mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
18 lines
358 B
TypeScript
18 lines
358 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;
|