import clsx from "clsx"; import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; import { useEditorInterface } from "../App"; const MenuTrigger = ({ className = "", children, onToggle, title, ...rest }: { className?: string; children: React.ReactNode; onToggle: () => void; title?: string; } & Omit, "onSelect">) => { const editorInterface = useEditorInterface(); const classNames = clsx( `dropdown-menu-button ${className}`, "zen-mode-transition", { "dropdown-menu-button--mobile": editorInterface.formFactor === "phone", }, ).trim(); return ( {children} ); }; export default MenuTrigger; MenuTrigger.displayName = "DropdownMenuTrigger";