import { jsxs as c, jsx as e } from "react/jsx-runtime";
import { noop as l } from "es-toolkit/function";
import p from "../../utils/classNames.js";
import m from "../switch/Switch.js";
const x = (s) => {
  const { isChecked: n = !1, className: o, label: t, onChange: a = l, ...r } = s, i = p(
    "TreeOption",
    "display-flex",
    "justify-content-start",
    "align-items-center",
    "gap-10",
    "cursor-pointer",
    o
  );
  return /* @__PURE__ */ c("div", { ...r, className: i, onClick: a, children: [
    /* @__PURE__ */ e("span", { className: "flex-1-1", children: t }),
    /* @__PURE__ */ e("span", { className: "pointer-events-none scale-80", children: /* @__PURE__ */ e(m, { keyName: "TreeOption-switch", checked: n }) })
  ] });
};
export {
  x as default
};
//# sourceMappingURL=TreeOption.js.map
