"use client";
import { useTreeViewNodeContext } from "./use-tree-view-node-context.js";
import { Fragment, jsx } from "react/jsx-runtime";
//#region src/components/tree-view/tree-view-node-checkbox-indicator.tsx
var TreeViewNodeCheckboxIndicator = (props) => {
	const { children, indeterminate, fallback } = props;
	const checkedState = useTreeViewNodeContext().checked;
	if (checkedState === "indeterminate" && indeterminate) return /* @__PURE__ */ jsx(Fragment, { children: indeterminate });
	if (checkedState === true && children) return /* @__PURE__ */ jsx(Fragment, { children });
	return /* @__PURE__ */ jsx(Fragment, { children: fallback });
};
TreeViewNodeCheckboxIndicator.displayName = "TreeViewNodeCheckboxIndicator";
//#endregion
export { TreeViewNodeCheckboxIndicator };
