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