"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { useTreeViewContext } from "./use-tree-view-context.js";
import { TreeViewNodeStateProvider } from "./use-tree-view-node-context.js";
import { TreeViewNodePropsProvider } from "./use-tree-view-node-props-context.js";
import { jsx } from "react/jsx-runtime";
//#region src/components/tree-view/tree-view-node-provider.tsx
var splitNodeProps = createSplitProps();
function TreeViewNodeProvider(props) {
	const [nodeProps, localProps] = splitNodeProps(props, ["indexPath", "node"]);
	return /* @__PURE__ */ jsx(TreeViewNodeStateProvider, {
		value: useTreeViewContext().getNodeState(nodeProps),
		children: /* @__PURE__ */ jsx(TreeViewNodePropsProvider, {
			value: nodeProps,
			children: localProps.children
		})
	});
}
//#endregion
export { TreeViewNodeProvider };
