const require_compose_refs = require("../../utils/compose-refs.cjs");
const require_factory = require("../factory.cjs");
const require_split_presence_props = require("./split-presence-props.cjs");
const require_use_presence = require("./use-presence.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/presence/presence.tsx
var Presence = (0, react.forwardRef)((props, ref) => {
	const [presenceProps, localProps] = require_split_presence_props.splitPresenceProps(props);
	const presence = require_use_presence.usePresence(presenceProps);
	if (presence.unmounted) return null;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...localProps,
		...presence.getPresenceProps(),
		"data-scope": "presence",
		"data-part": "root",
		ref: require_compose_refs.composeRefs(presence.ref, ref)
	});
});
Presence.displayName = "Presence";
//#endregion
exports.Presence = Presence;
