"use client";
const require_factory = require("../factory.cjs");
const require_use_collapsible_context = require("./use-collapsible-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/collapsible/collapsible-content.tsx
var CollapsibleContent = (0, react.forwardRef)((props, ref) => {
	const collapsible = require_use_collapsible_context.useCollapsibleContext();
	if (collapsible.isUnmounted) return null;
	const mergedProps = (0, _zag_js_react.mergeProps)(collapsible.getContentProps(), props);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref
	});
});
CollapsibleContent.displayName = "CollapsibleContent";
//#endregion
exports.CollapsibleContent = CollapsibleContent;
