{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "context-menu",
  "type": "registry:ui",
  "title": "Context Menu",
  "description": "Right-click, long-press and Shift+F10 menu anchored to the pointer, with icons, shortcuts, submenus and checkable rows, on React Aria's Menu.",
  "dependencies": [
    "@remixicon/react@^4.9.0",
    "react-aria-components@^1.17.0"
  ],
  "registryDependencies": [
    "cx",
    "direction",
    "scroll-fade",
    "template-copy"
  ],
  "files": [
    {
      "path": "components/base/context-menu/context-menu.tsx",
      "content": "\"use client\";\n\nimport { createContext, useCallback, useContext, useEffect, useId, useRef, useState } from \"react\";\nimport type {\n  ComponentType,\n  KeyboardEvent,\n  MouseEvent,\n  PointerEvent as ReactPointerEvent,\n  ReactNode,\n  RefObject,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport {\n  Header as AriaHeader,\n  Menu as AriaMenu,\n  MenuItem as AriaMenuItem,\n  MenuSection as AriaMenuSection,\n  Popover as AriaPopover,\n  Separator as AriaSeparator,\n  SubmenuTrigger as AriaSubmenuTrigger,\n} from \"react-aria-components\";\nimport type {\n  Key,\n  MenuItemProps as AriaMenuItemProps,\n  MenuProps as AriaMenuProps,\n  MenuSectionProps as AriaMenuSectionProps,\n} from \"react-aria-components\";\nimport { RiArrowRightSLine, RiCheckLine } from \"@remixicon/react\";\nimport { MENU_ITEM, MENU_ITEM_ACTIVE } from \"@/components/base/dropdown/menu-styles\";\nimport { useDirection } from \"@/components/foundations/direction/direction\";\nimport { ScrollFade, useScrollFade } from \"@/components/foundations/scroll-fade/scroll-fade\";\nimport { useTemplateCopy } from \"@/components/foundations/template-copy/template-copy\";\nimport { cx } from \"@/utils/cx\";\n\n/**\n * Context menu — the actions for whatever is under the pointer: a file, a\n * row, a message, a spot on a canvas. It opens on right-click, on a long\n * press with touch, and on Shift+F10 or the Menu key while the target has\n * focus.\n *\n *   <ContextMenuTrigger>\n *     <FileCard … />\n *     <ContextMenu aria-label=\"File actions\" onAction={run}>\n *       <ContextMenuItem id=\"rename\" icon={RiEditLine} shortcut=\"⌘R\">Rename</ContextMenuItem>\n *       <ContextMenuSubmenu label=\"Move to\" icon={RiFolderTransferLine}>…</ContextMenuSubmenu>\n *       <ContextMenuSeparator />\n *       <ContextMenuItem id=\"delete\" icon={RiDeleteBinLine} variant=\"danger\">Delete</ContextMenuItem>\n *     </ContextMenu>\n *   </ContextMenuTrigger>\n *\n * Promoted from Multi-agent Chat's chat menu, with its compact look: a\n * 14px-radius panel with 4px padding, 32px rows with 20px icons, and the\n * shared menu motion (150ms fade, scale 0.95, 2px blur) grown from the\n * pointer. The menu's corner sits at the pointer, towards the reading\n * direction, and flips or shifts to stay on screen.\n *\n * Built on React Aria's Menu in a non-modal popover, so arrows, typeahead,\n * submenus (Right and Left, mirrored in RTL), Escape and focus return come\n * from React Aria. Like the browser's own menu, it closes on a press outside\n * or when the page scrolls. With nested triggers the innermost one wins, and\n * `isDisabled` lets the browser's menu through.\n */\n\ntype IconComponent = ComponentType<{ className?: string; \"aria-hidden\"?: boolean | \"true\" | \"false\" }>;\n\n/** How long a touch rests before the menu opens, and how far it may drift. */\nconst LONG_PRESS_MS = 500;\nconst LONG_PRESS_SLOP = 10;\n\nconst PANEL = [\n  \"z-110 flex min-w-52 max-w-[calc(100vw-32px)] flex-col overflow-hidden outline-none\",\n  \"rounded-[14px] border border-border-button-default bg-background-primary-default shadow-dropdown\",\n  \"origin-(--trigger-anchor-point) transition-[opacity,scale,filter] duration-150 ease-out\",\n  \"data-[entering]:opacity-0 data-[exiting]:opacity-0\",\n  \"motion-safe:data-[entering]:scale-95 motion-safe:data-[entering]:blur-[2px]\",\n  \"motion-safe:data-[exiting]:scale-95 motion-safe:data-[exiting]:blur-[2px]\",\n].join(\" \");\n\ninterface TriggerState {\n  id: string;\n  isOpen: boolean;\n  /** Bumped on every opening, so each menu mounts fresh at its own point. */\n  openCount: number;\n  anchorRef: RefObject<HTMLDivElement | null>;\n  autoFocus: \"first\" | true;\n  close: () => void;\n}\n\nconst TriggerContext = createContext<TriggerState | null>(null);\n\n/** The root menu's id, action handler and close, for the menus in its submenus. */\nconst RootMenuContext = createContext<{ id: string; onAction?: (key: Key) => void; close: () => void } | null>(null);\n\n/** The popover (root or submenu) an element sits in, by its trigger's id. */\nfunction menuOf(target: EventTarget | null) {\n  return target instanceof Element ? target.closest(\"[data-context-menu]\")?.getAttribute(\"data-context-menu\") : undefined;\n}\n\n/* ---------------------------------------------------------------- trigger */\n\nexport interface ContextMenuTriggerProps {\n  /** The target, then its ContextMenu. A function receives whether the menu is open, to highlight the target. */\n  children: ReactNode | ((state: { isOpen: boolean }) => ReactNode);\n  /** Leave the browser's own menu in place. */\n  isDisabled?: boolean;\n  onOpenChange?: (isOpen: boolean) => void;\n  /** The wrapper is `display: contents`, so it adds no box; a class here can give it one. */\n  className?: string;\n}\n\nexport function ContextMenuTrigger({ children, isDisabled = false, onOpenChange, className }: ContextMenuTriggerProps) {\n  const id = useId();\n  const direction = useDirection();\n  const anchorRef = useRef<HTMLDivElement>(null);\n  const openRef = useRef(false);\n  const press = useRef<{ x: number; y: number; timer: number } | null>(null);\n  const [isOpen, setIsOpen] = useState(false);\n  const [point, setPoint] = useState<{ x: number; y: number } | null>(null);\n  const [openCount, setOpenCount] = useState(0);\n  const [autoFocus, setAutoFocus] = useState<\"first\" | true>(true);\n\n  const setOpen = useCallback(\n    (next: boolean) => {\n      if (openRef.current === next) return;\n      openRef.current = next;\n      setIsOpen(next);\n      onOpenChange?.(next);\n    },\n    [onOpenChange],\n  );\n  const close = useCallback(() => setOpen(false), [setOpen]);\n\n  // A pointer opening focuses the menu itself, as the browser's menu does;\n  // a keyboard opening lands on the first item.\n  const openAt = (x: number, y: number, focus: \"first\" | true) => {\n    setPoint({ x, y });\n    setAutoFocus(focus);\n    setOpenCount((count) => count + 1);\n    setOpen(true);\n  };\n\n  /** Keyboard openings have no pointer: open just inside the focused element's start edge. */\n  const openFrom = (element: Element) => {\n    const rect = element.getBoundingClientRect();\n    const inset = Math.min(24, rect.width / 2);\n    openAt(direction === \"rtl\" ? rect.right - inset : rect.left + inset, rect.top + Math.min(rect.height, 40), \"first\");\n  };\n\n  const cancelPress = () => {\n    if (!press.current) return;\n    window.clearTimeout(press.current.timer);\n    press.current = null;\n  };\n\n  useEffect(() => () => {\n    if (press.current) window.clearTimeout(press.current.timer);\n  }, []);\n\n  // React Aria leaves non-modal popovers open on outside presses, and the\n  // anchor is fixed, so close on a press or a scroll outside this menu tree.\n  useEffect(() => {\n    if (!isOpen) return;\n    const onOutside = (event: Event) => {\n      if (menuOf(event.target) !== id) close();\n    };\n    document.addEventListener(\"pointerdown\", onOutside, true);\n    document.addEventListener(\"scroll\", onOutside, true);\n    return () => {\n      document.removeEventListener(\"pointerdown\", onOutside, true);\n      document.removeEventListener(\"scroll\", onOutside, true);\n    };\n  }, [isOpen, id, close]);\n\n  const onContextMenu = (event: MouseEvent<HTMLDivElement>) => {\n    // Events from the open menu bubble here through its portal; never show\n    // the browser's menu on top of it.\n    if (menuOf(event.target) === id) {\n      event.preventDefault();\n      return;\n    }\n    if (isDisabled || event.defaultPrevented || !event.currentTarget.contains(event.target as Node)) return;\n    event.preventDefault();\n    if (openRef.current) return;\n    // Some keyboard-made events carry no position.\n    if (event.clientX === 0 && event.clientY === 0) openFrom(event.target as Element);\n    else openAt(event.clientX, event.clientY, true);\n  };\n\n  const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n    if (isDisabled || event.defaultPrevented || !event.currentTarget.contains(event.target as Node)) return;\n    if (event.key !== \"ContextMenu\" && !(event.shiftKey && event.key === \"F10\")) return;\n    event.preventDefault();\n    openFrom(event.target as Element);\n  };\n\n  const onPointerDown = (event: ReactPointerEvent<HTMLDivElement>) => {\n    if (event.pointerType !== \"touch\" || isDisabled || !event.currentTarget.contains(event.target as Node)) return;\n    cancelPress();\n    const { clientX: x, clientY: y } = event;\n    press.current = {\n      x,\n      y,\n      timer: window.setTimeout(() => {\n        press.current = null;\n        if (!openRef.current) openAt(x, y, true);\n      }, LONG_PRESS_MS),\n    };\n  };\n\n  const onPointerMove = (event: ReactPointerEvent<HTMLDivElement>) => {\n    if (press.current && Math.hypot(event.clientX - press.current.x, event.clientY - press.current.y) > LONG_PRESS_SLOP) {\n      cancelPress();\n    }\n  };\n\n  const content = typeof children === \"function\" ? children({ isOpen }) : children;\n\n  return (\n    <TriggerContext.Provider value={{ id, isOpen, openCount, anchorRef, autoFocus, close }}>\n      <div\n        className={cx(\"contents [-webkit-touch-callout:none]\", className)}\n        data-open={isOpen || undefined}\n        onContextMenu={onContextMenu}\n        onKeyDown={onKeyDown}\n        onPointerDown={onPointerDown}\n        onPointerMove={onPointerMove}\n        onPointerUp={cancelPress}\n        onPointerCancel={cancelPress}\n      >\n        {content}\n      </div>\n      {point\n        ? createPortal(\n            <div\n              ref={anchorRef}\n              aria-hidden\n              className=\"pointer-events-none fixed size-px\"\n              style={{ left: point.x, top: point.y }}\n            />,\n            document.body,\n          )\n        : null}\n    </TriggerContext.Provider>\n  );\n}\n\n/* ------------------------------------------------------------------- menu */\n\n/** A menu's scrolling list, with the shared progressive top blur. */\nfunction MenuList<T extends object>({ children, ...props }: Omit<AriaMenuProps<T>, \"className\">) {\n  const fade = useScrollFade();\n  return (\n    <div className=\"relative flex min-h-0 flex-col\">\n      <AriaMenu\n        {...props}\n        onScroll={fade.onScroll}\n        className=\"flex min-h-0 flex-col gap-1 overflow-y-auto overscroll-contain p-1 outline-none [scrollbar-width:thin]\"\n      >\n        {children}\n      </AriaMenu>\n      <ScrollFade progress={fade.progress} />\n    </div>\n  );\n}\n\nexport interface ContextMenuProps<T extends object> extends Omit<AriaMenuProps<T>, \"className\" | \"autoFocus\" | \"onClose\"> {\n  /** Names the menu for screen readers. Default \"Actions\". */\n  \"aria-label\"?: string;\n  /** Classes on the panel, e.g. a width. */\n  className?: string;\n}\n\nexport function ContextMenu<T extends object>({\n  \"aria-label\": ariaLabel = \"Actions\",\n  onAction,\n  className,\n  ...props\n}: ContextMenuProps<T>) {\n  const trigger = useContext(TriggerContext);\n  const direction = useDirection();\n  const localize = useTemplateCopy();\n  if (!trigger) throw new Error(\"ContextMenu must be inside a ContextMenuTrigger.\");\n  const { id, isOpen, openCount, anchorRef, autoFocus, close } = trigger;\n\n  return (\n    <RootMenuContext.Provider value={{ id, onAction, close }}>\n      <AriaPopover\n        key={openCount}\n        triggerRef={anchorRef}\n        isOpen={isOpen}\n        onOpenChange={(open) => {\n          if (!open) close();\n        }}\n        isNonModal\n        placement=\"bottom start\"\n        offset={2}\n        dir={direction}\n        data-context-menu={id}\n        className={cx(PANEL, className)}\n      >\n        <MenuList {...props} aria-label={localize(ariaLabel)} autoFocus={autoFocus} onAction={onAction} onClose={close} />\n      </AriaPopover>\n    </RootMenuContext.Provider>\n  );\n}\n\n/* ---------------------------------------------------------------- content */\n\nexport interface ContextMenuItemProps extends Omit<AriaMenuItemProps, \"children\" | \"className\"> {\n  /** Remix Icon before the label. */\n  icon?: IconComponent;\n  /** Keyboard shortcut at the end of the row, e.g. \"⌘C\". */\n  shortcut?: string;\n  /** `danger` for destructive actions such as Delete. */\n  variant?: \"default\" | \"danger\";\n  className?: string;\n  children: ReactNode;\n}\n\n/**\n * A row: icon, label, then a check when selected, the shortcut, or a chevron\n * when it opens a submenu. The row stays highlighted while its submenu is open.\n */\nexport function ContextMenuItem({ icon: Icon, shortcut, variant = \"default\", className, children, ...props }: ContextMenuItemProps) {\n  return (\n    <AriaMenuItem\n      {...props}\n      textValue={props.textValue ?? (typeof children === \"string\" ? children : undefined)}\n      className={({ isFocused, isOpen, isDisabled }) =>\n        cx(\n          MENU_ITEM,\n          \"px-2 py-1.5 text-body-medium\",\n          variant === \"danger\" && \"text-text-destructive\",\n          (isFocused || isOpen) && MENU_ITEM_ACTIVE,\n          isDisabled && \"cursor-not-allowed text-text-disabled\",\n          className,\n        )\n      }\n    >\n      {({ isSelected, hasSubmenu, isDisabled }) => (\n        <>\n          {Icon ? (\n            <Icon\n              aria-hidden\n              className={cx(\"size-5 shrink-0\", variant === \"danger\" || isDisabled ? \"text-current\" : \"text-foreground-icon-secondary\")}\n            />\n          ) : null}\n          <span className=\"min-w-0 flex-1 truncate\">{children}</span>\n          {isSelected ? <RiCheckLine aria-hidden className=\"size-4 shrink-0 text-accent-500\" /> : null}\n          {shortcut ? <kbd className=\"shrink-0 ps-3 font-sans text-body-regular text-text-tertiary\">{shortcut}</kbd> : null}\n          {hasSubmenu ? (\n            <RiArrowRightSLine aria-hidden className=\"-me-1 size-5 shrink-0 text-foreground-icon-secondary rtl:-scale-x-100\" />\n          ) : null}\n        </>\n      )}\n    </AriaMenuItem>\n  );\n}\n\nexport interface ContextMenuSubmenuProps {\n  /** The row that opens the submenu. */\n  label: ReactNode;\n  icon?: IconComponent;\n  /** Typeahead text when the label is not a string. */\n  textValue?: string;\n  isDisabled?: boolean;\n  /** Classes on the submenu panel. */\n  className?: string;\n  /** The submenu's items. Their ids reach the root ContextMenu's `onAction`. */\n  children: ReactNode;\n}\n\nexport function ContextMenuSubmenu({ label, icon, textValue, isDisabled, className, children }: ContextMenuSubmenuProps) {\n  const root = useContext(RootMenuContext);\n  const direction = useDirection();\n  return (\n    <AriaSubmenuTrigger>\n      <ContextMenuItem icon={icon} textValue={textValue} isDisabled={isDisabled}>\n        {label}\n      </ContextMenuItem>\n      {/* 9px clears the parent's padding and border for a 4px gap; -5px lines\n          the first row up with the row that opened it. */}\n      <AriaPopover dir={direction} offset={9} crossOffset={-5} data-context-menu={root?.id} className={cx(PANEL, className)}>\n        <MenuList onAction={root?.onAction} onClose={root?.close}>\n          {children}\n        </MenuList>\n      </AriaPopover>\n    </AriaSubmenuTrigger>\n  );\n}\n\nexport interface ContextMenuSectionProps extends Omit<AriaMenuSectionProps<object>, \"children\" | \"className\"> {\n  /** Muted heading above the section's rows. */\n  title?: ReactNode;\n  className?: string;\n  children: ReactNode;\n}\n\n/** A group of rows, optionally titled. Give it `selectionMode` for a set of checkable rows. */\nexport function ContextMenuSection({ title, className, children, ...props }: ContextMenuSectionProps) {\n  return (\n    <AriaMenuSection {...props} className={cx(\"flex flex-col gap-1\", className)}>\n      {title ? <AriaHeader className=\"px-2 pt-1 pb-0.5 text-body-2-medium text-text-tertiary\">{title}</AriaHeader> : null}\n      {children}\n    </AriaMenuSection>\n  );\n}\n\n/** A full-width rule between groups of rows. */\nexport function ContextMenuSeparator({ className }: { className?: string }) {\n  return <AriaSeparator className={cx(\"-mx-1 my-0.5 h-px shrink-0 bg-border-button-default\", className)} />;\n}\n",
      "type": "registry:component",
      "target": "components/base/context-menu/context-menu.tsx"
    },
    {
      "path": "components/base/dropdown/menu-styles.ts",
      "content": "/**\n * Shared visual recipe for BoardUI menu surfaces.\n *\n * Select and Dropdown intentionally keep their distinct React Aria semantics\n * (single-value listbox vs. action menu), while consuming the same panel,\n * motion, and row treatments from here.\n */\nexport const MENU_POPOVER_SURFACE = [\n  // z-110 sits above the modal layer (z-100), so menus opened inside a\n  // Modal or Drawer render over it rather than behind its backdrop.\n  \"z-110 max-w-[calc(100vw-32px)] overflow-y-auto\",\n  \"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown\",\n  \"transition duration-150 ease-out\",\n  \"data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]\",\n  \"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]\",\n  \"data-[placement=bottom]:origin-top-left rtl:data-[placement=bottom]:origin-top-right data-[placement=top]:origin-bottom-left rtl:data-[placement=top]:origin-bottom-right\",\n  \"data-[placement=left]:origin-right data-[placement=right]:origin-left\",\n].join(\" \");\n\nexport const MENU_POPOVER_WIDTH = \"w-[266px]\";\n\n/**\n * BoardUI's compact dropdown (the project board's and the chat's menus, and\n * the canvas editor's app menus): a 14px panel at 4px padding over\n * px-2 py-1.5 rows. Layered over `MENU_POPOVER_SURFACE` and `MENU_ITEM`; the\n * rows' 10px radius sits concentric 4px inside the panel's 14px.\n */\nexport const MENU_POPOVER_COMPACT = \"rounded-[14px] p-1\";\n\nexport const MENU_ITEM_COMPACT = \"px-2 py-1.5\";\n\n/**\n * `DropdownDivider` bleeds through the default p-2.5 panel; in the compact\n * panel it bleeds through p-1 and sits in the rows' 4px gap on each side.\n */\nexport const MENU_DIVIDER_COMPACT = \"-mx-1 my-0\";\n\nexport const MENU_ITEMS_CONTAINER = \"flex w-full flex-col gap-1 outline-none\";\n\nexport const MENU_ITEM = [\n  \"flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-start\",\n  \"text-text-primary outline-none transition-colors\",\n].join(\" \");\n\nexport const MENU_ITEM_ACTIVE = \"bg-dropdown-item-hover-background\";\n\nexport const MENU_ITEM_INTERACTIVE =\n  \"hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background\";\n",
      "type": "registry:component",
      "target": "components/base/dropdown/menu-styles.ts"
    }
  ],
  "meta": {
    "docsUrl": "https://www.boardui.com/components/context-menu",
    "example": "import { RiDeleteBinLine, RiEditLine, RiFileCopyLine, RiFolderTransferLine, RiInboxLine, RiArchiveLine } from \"@remixicon/react\";\nimport {\n  ContextMenu,\n  ContextMenuItem,\n  ContextMenuSeparator,\n  ContextMenuSubmenu,\n  ContextMenuTrigger,\n} from \"@/components/base/context-menu/context-menu\";\n\nexport function Example() {\n  return (\n    <ContextMenuTrigger>\n      <FileTile name=\"Q3 report.pdf\" />\n      <ContextMenu aria-label=\"File actions\" onAction={(key) => run(key)}>\n        <ContextMenuItem id=\"rename\" icon={RiEditLine}>Rename</ContextMenuItem>\n        <ContextMenuItem id=\"duplicate\" icon={RiFileCopyLine} shortcut=\"⌘D\">Duplicate</ContextMenuItem>\n        <ContextMenuSubmenu label=\"Move to\" icon={RiFolderTransferLine}>\n          <ContextMenuItem id=\"move-inbox\" icon={RiInboxLine}>Inbox</ContextMenuItem>\n          <ContextMenuItem id=\"move-archive\" icon={RiArchiveLine}>Archive</ContextMenuItem>\n        </ContextMenuSubmenu>\n        <ContextMenuSeparator />\n        <ContextMenuItem id=\"delete\" icon={RiDeleteBinLine} variant=\"danger\" shortcut=\"⌘⌫\">Delete</ContextMenuItem>\n      </ContextMenu>\n    </ContextMenuTrigger>\n  );\n}",
    "snippets": [
      {
        "label": "highlight",
        "code": "<ContextMenuTrigger>\n  {({ isOpen }) => (\n    <>\n      <FileTile name=\"Q3 report.pdf\" className={isOpen ? \"border-accent-500\" : undefined} />\n      <ContextMenu aria-label=\"File actions\">…</ContextMenu>\n    </>\n  )}\n</ContextMenuTrigger>"
      },
      {
        "label": "selection",
        "code": "const [view, setView] = useState<Selection>(new Set([\"grid\", \"snap\"]));\nconst [zoom, setZoom] = useState<Selection>(new Set([\"100\"]));\n\n<ContextMenuTrigger>\n  <Canvas tabIndex={0} />\n  <ContextMenu aria-label=\"Canvas options\">\n    <ContextMenuSection title=\"View\" selectionMode=\"multiple\" selectedKeys={view} onSelectionChange={setView}>\n      <ContextMenuItem id=\"grid\">Show grid</ContextMenuItem>\n      <ContextMenuItem id=\"snap\">Snap to grid</ContextMenuItem>\n      <ContextMenuItem id=\"rulers\">Show rulers</ContextMenuItem>\n    </ContextMenuSection>\n    <ContextMenuSeparator />\n    <ContextMenuSection title=\"Zoom\" selectionMode=\"single\" disallowEmptySelection selectedKeys={zoom} onSelectionChange={setZoom}>\n      <ContextMenuItem id=\"50\">50%</ContextMenuItem>\n      <ContextMenuItem id=\"100\">100%</ContextMenuItem>\n      <ContextMenuItem id=\"200\">200%</ContextMenuItem>\n    </ContextMenuSection>\n    <ContextMenuSeparator />\n    <ContextMenuItem id=\"paste\" icon={RiClipboardLine} shortcut=\"⌘V\" isDisabled>Paste</ContextMenuItem>\n  </ContextMenu>\n</ContextMenuTrigger>"
      },
      {
        "label": "rtl",
        "code": "import { DirectionProvider } from \"@/components/foundations/direction/direction\";\n\n<DirectionProvider locale=\"ar\">\n  <ContextMenuTrigger>\n    <FileTile name=\"تقرير الربع الثالث.pdf\" />\n    <ContextMenu aria-label=\"إجراءات الملف\">\n      <ContextMenuItem id=\"open\" icon={RiExternalLinkLine}>فتح</ContextMenuItem>\n      <ContextMenuSubmenu label=\"نقل إلى\" icon={RiFolderTransferLine}>\n        <ContextMenuItem id=\"inbox\" icon={RiInboxLine}>البريد الوارد</ContextMenuItem>\n      </ContextMenuSubmenu>\n      <ContextMenuSeparator />\n      <ContextMenuItem id=\"delete\" icon={RiDeleteBinLine} variant=\"danger\">حذف</ContextMenuItem>\n    </ContextMenu>\n  </ContextMenuTrigger>\n</DirectionProvider>"
      }
    ]
  }
}
