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