"use client";
import { ark } from "../factory.js";
import { usePresenceContext } from "../presence/use-presence-context.js";
import { useMenuContext } from "./use-menu-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/menu/menu-positioner.tsx
var MenuPositioner = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useMenuContext().getPositionerProps(), props);
	if (usePresenceContext().unmounted) return null;
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref
	});
});
MenuPositioner.displayName = "MenuPositioner";
//#endregion
export { MenuPositioner };
