import { jsx as o, Fragment as u } from "react/jsx-runtime";
import S from "./TreeLeaf.js";
import { excludeFromList as f } from "./treeUtils.js";
const x = (c) => {
  const { leafList: n, hasMultiselect: l, showRadioButtons: d, selectedItems: t, selectedGroups: i, onSelectionChange: s } = c, r = (e) => {
    const m = t.includes(e) ? f(t, e) : [...t, e];
    s(m, i);
  }, a = (e) => s([e], []);
  return /* @__PURE__ */ o(u, { children: n.map((e) => /* @__PURE__ */ o(
    S,
    {
      item: e,
      hasMultiselect: l,
      showRadioButtons: d,
      isSelected: t.includes(e.id),
      onSelectItem: () => r(e.id),
      onActiveItem: () => a(e.id)
    },
    e.id
  )) });
};
export {
  x as default
};
//# sourceMappingURL=TreeLeafList.js.map
