"use client" import * as React from "react" import { cn } from "../../lib/utils" /** * `NavigableMenu`, `MenuGroup` and `MenuItem` replace the `@wordpress/components` trio of the same * names - **1 import**, the sidebar in `UserPage`. * * NOT `ui/dropdown-menu`, AND THIS IS THE REUSE CALL WORTH RECORDING. That component is a Radix * DropdownMenu: it needs a trigger, it portals its content and it closes on selection. This is a * standing list of tabs down the side of a page - always visible, nothing to open. Radix has no * primitive for that, and forcing a dropdown into the shape would portal a permanent sidebar. * * WHAT `NavigableMenu` ACTUALLY DOES, and the only reason it is not a plain div: it is a * `role="menu"` container where Up and Down move focus between the items and wrap around. Tab alone * would step through every item one at a time, which is the behaviour WordPress replaced. * * `MenuItem` renders a real ` ) } export { MenuGroup, MenuItem, NavigableMenu }