import React from 'react'; import { Button, GridList as RACGridList, GridListItem as RACGridListItem, type GridListItemProps, type GridListProps, } from 'react-aria-components'; import { Checkbox } from '../Checkbox/Checkbox'; export function GridList({ children, ...props }: GridListProps) { return {children}; } export function GridListItem({ children, ...props }: GridListItemProps) { const textValue = typeof children === 'string' ? children : undefined; return ( {({ selectionMode, selectionBehavior, allowsDragging }) => ( <> {/* Add elements for drag and drop and selection. */} {allowsDragging && } {selectionMode === 'multiple' && selectionBehavior === 'toggle' && ( )} {children} )} ); }