"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_collapsible_content = require("../collapsible/collapsible-content.cjs");
const require_use_tree_view_context = require("./use-tree-view-context.cjs");
const require_use_tree_view_node_props_context = require("./use-tree-view-node-props-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/tree-view/tree-view-branch-content.tsx
var splitVisibilityProps = require_create_split_props.createSplitProps();
var TreeViewBranchContent = (0, react.forwardRef)((props, ref) => {
	const treeView = require_use_tree_view_context.useTreeViewContext();
	const nodeProps = require_use_tree_view_node_props_context.useTreeViewNodePropsContext();
	const [, branchContentProps] = splitVisibilityProps(treeView.getBranchContentProps(nodeProps), ["hidden", "data-state"]);
	const mergedProps = (0, _zag_js_react.mergeProps)(branchContentProps, props);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_collapsible_content.CollapsibleContent, {
		ref,
		...mergedProps
	});
});
TreeViewBranchContent.displayName = "TreeViewBranchContent";
//#endregion
exports.TreeViewBranchContent = TreeViewBranchContent;
