import { jsx as l } from "react/jsx-runtime";
import { noop as o } from "es-toolkit/function";
import d from "../checkbox/Checkbox.js";
const h = (t) => {
  const { isDisabled: i, isChecked: r = !1, isEnabled: n = !0, isIndeterminate: e = !1, onSelect: s = o } = t, a = (c) => s(c.target.checked, e);
  return n ? /* @__PURE__ */ l("div", { className: "TreeSelectAll display-flex align-items-center", children: /* @__PURE__ */ l(
    d,
    {
      checked: r,
      onClick: a,
      disabled: i,
      indeterminate: e,
      className: "margin-top--1"
    }
  ) }) : null;
};
export {
  h as default
};
//# sourceMappingURL=TreeSelectAll.js.map
