import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import Icon from "../icon/icon.js";
import { useTreeContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/tree/treeIcon.tsx
/** Displays an icon on the side of the TreeItem. */
const TreeIcon = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Tree", useTreeContext());
	return /* @__PURE__ */ jsx(Icon, {
		className: cs("vui-treeIcon", className),
		ref,
		size: "xs",
		...styles.icon,
		...rest
	});
});
TreeIcon.displayName = "TreeIcon";

//#endregion
export { TreeIcon as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=treeIcon.js.map