"use client" import { Check, ChevronRight, Circle } from 'lucide-react'; import * as React from 'react'; import { cn } from '../../../lib'; import * as MenubarPrimitive from '@radix-ui/react-menubar'; import { Link } from '../link'; function MenubarMenu({ ...props }: React.ComponentProps) { return } function MenubarGroup({ ...props }: React.ComponentProps) { return } function MenubarPortal({ ...props }: React.ComponentProps) { return } function MenubarRadioGroup({ ...props }: React.ComponentProps) { return } function MenubarSub({ ...props }: React.ComponentProps) { return } const Menubar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) Menubar.displayName = MenubarPrimitive.Root.displayName const MenubarTrigger = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName const MenubarSubTrigger = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { inset?: boolean } >(({ className, inset, children, ...props }, ref) => ( {children} )) MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName const MenubarSubContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName const MenubarContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >( ( { className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref ) => ( ) ) MenubarContent.displayName = MenubarPrimitive.Content.displayName const MenubarItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { inset?: boolean href?: string /** Visual style. `destructive` paints the row red on focus. */ variant?: "default" | "destructive" key?: React.Key } >(({ className, inset, href, variant = "default", children, ...props }, ref) => { const classes = cn( "relative flex cursor-default select-none items-center rounded-[var(--radius-sm)] px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive", inset && "pl-8", className ) if (href) { return ( {children} ) } return ( {children} ) }) MenubarItem.displayName = MenubarPrimitive.Item.displayName const MenubarCheckboxItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { key?: React.Key } >(({ className, children, checked, ...props }, ref) => ( {children} )) MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName const MenubarRadioItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { key?: React.Key } >(({ className, children, ...props }, ref) => ( {children} )) MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName const MenubarLabel = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { inset?: boolean } >(({ className, inset, ...props }, ref) => ( )) MenubarLabel.displayName = MenubarPrimitive.Label.displayName const MenubarSeparator = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName const MenubarShortcut = ({ className, ...props }: React.HTMLAttributes) => { return ( ) } MenubarShortcut.displayname = "MenubarShortcut" export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, }