import { jsx as i } from "react/jsx-runtime";
import r from "react";
import { isFunction as o } from "es-toolkit/predicate";
import { useMapContext as m } from "./MapContext.js";
const s = (n, e) => r.Children.map(n, (t) => {
  if (t)
    return r.cloneElement(t, {
      api: e
    });
}), f = (n) => {
  const { children: e } = n, { api: t } = m();
  return e ? /* @__PURE__ */ i("div", { className: "MapElements", children: o(e) ? e(t) : s(e, t) }) : null;
};
export {
  f as default
};
//# sourceMappingURL=MapElements.js.map
