import React, { use } from 'react'; import { Menu } from '@base-ui/react/menu'; import { ContextMenu } from '@base-ui/react/context-menu'; import type { LucideIcon } from 'lucide-react'; import { cn } from '@/lib/cn'; import Icon from '@/components/elements/Icon'; const positionerClass = 'z-[9999] outline-hidden'; const popupClass = 'min-w-56 bg-popover border border-border rounded-sm shadow-xl p-1.5 text-sm text-popover-foreground ' + 'outline-hidden origin-[var(--transform-origin)] transition duration-100 ' + 'data-[starting-style]:opacity-0 data-[starting-style]:scale-95 ' + 'data-[ending-style]:opacity-0 data-[ending-style]:scale-95'; type MenuItemComponent = React.ComponentType>; const MenuItemContext = React.createContext(Menu.Item as MenuItemComponent); const ContextMenuItem = (props: React.ComponentProps) => ; interface DropdownMenuProps { /** Rendered inside the trigger `