"use client";
const require_factory = require("../factory.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-item.tsx
var TreeViewItem = (0, react.forwardRef)((props, ref) => {
	const treeView = require_use_tree_view_context.useTreeViewContext();
	const nodeProps = require_use_tree_view_node_props_context.useTreeViewNodePropsContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(treeView.getItemProps(nodeProps), props);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref
	});
});
TreeViewItem.displayName = "TreeViewItem";
//#endregion
exports.TreeViewItem = TreeViewItem;
