import React from 'react'; import { type RowProps, Row as RACRow, Cell, Collection, useTableOptions, Button, } from 'react-aria-components'; import { Checkbox } from '../Checkbox/Checkbox'; import { DraggableIcon } from '../icons/DraggableIcon'; export function Row({ id, columns, children, ...otherProps }: RowProps) { const { selectionBehavior, allowsDragging } = useTableOptions(); return ( {allowsDragging && ( )} {selectionBehavior === 'toggle' && ( )} {children} ); }