import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { TextButton } from "../button/buttons.js";
import PopoverTrigger from "../popover/popoverTrigger.js";
import { useMenuContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/menu/menuButton.tsx
/** Displays PopoverTrigger as a button. */
const MenuButton = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Menu", useMenuContext());
	return /* @__PURE__ */ jsx(PopoverTrigger, {
		as: TextButton,
		className: cs("vui-menuButton", className),
		ref,
		...styles.button,
		...rest
	});
});
MenuButton.displayName = "MenuButton";

//#endregion
export { MenuButton as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=menuButton.js.map