"use client";
import { ark } from "../factory.js";
import { useTreeViewContext } from "./use-tree-view-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-label.tsx
var TreeViewLabel = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useTreeViewContext().getLabelProps(), props);
	return /* @__PURE__ */ jsx(ark.h3, {
		...mergedProps,
		ref
	});
});
TreeViewLabel.displayName = "TreeViewLabel";
//#endregion
export { TreeViewLabel };
