import { Check, ChevronRight } from 'lucide-react'; import { composeRenderProps } from 'react-aria-components/composeRenderProps'; import { Menu as AriaMenu, MenuItem as AriaMenuItem, type MenuProps as AriaMenuProps, type MenuItemProps, Separator, type SeparatorProps, } from 'react-aria-components/Menu'; import { DropdownSection, type DropdownSectionProps, dropdownItemStyles, } from './ListBox'; import { Popover, type PopoverProps } from './Popover'; interface MenuProps extends AriaMenuProps { placement?: PopoverProps['placement']; } export function Menu(props: MenuProps) { return ( ); } export function MenuItem(props: MenuItemProps) { return ( {composeRenderProps( props.children, (children, { selectionMode, isSelected, hasSubmenu }) => ( <> {selectionMode !== 'none' && ( {isSelected && } )} {children} {hasSubmenu && ( )} ), )} ); } export function MenuSeparator(props: SeparatorProps) { return ( ); } export function MenuSection(props: DropdownSectionProps) { return ; }