"use client";
import { ark } from "../factory.js";
import { useTreeViewContext } from "./use-tree-view-context.js";
import { useTreeViewNodePropsContext } from "./use-tree-view-node-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/tree-view/tree-view-branch-indicator.tsx
var TreeViewBranchIndicator = forwardRef((props, ref) => {
	const treeView = useTreeViewContext();
	const nodeProps = useTreeViewNodePropsContext();
	const mergedProps = mergeProps(treeView.getBranchIndicatorProps(nodeProps), props);
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref
	});
});
TreeViewBranchIndicator.displayName = "TreeViewBranchIndicator";
//#endregion
export { TreeViewBranchIndicator };
