'use client'; import { ListBox, ListBoxItem, type ListBoxItemProps, type ListBoxProps } from 'react-aria-components/ListBox'; import {composeRenderProps} from 'react-aria-components/composeRenderProps'; import {Text} from 'react-aria-components/Text'; import {Check} from 'lucide-react'; export function DropdownListBox(props: ListBoxProps) { return ; } export function DropdownItem(props: ListBoxItemProps) { let textValue = props.textValue || (typeof props.children === 'string' ? props.children : undefined); return ( {composeRenderProps(props.children, (children, {isSelected}) => ( <> {isSelected && } {typeof children === 'string' ? {children} : children} ))} ); }