import { useEffect as o } from "react";
import { useMapContext as n } from "../components/MapContext.js";
import { addEventListenerMap as p, removeEventListenerMap as s } from "./eventHandling.js";
const u = (r, e, t) => {
  o(() => {
    r && r[e](t);
  }, [t]);
}, a = (r, e) => {
  const { api: t } = n();
  o(() => {
    if (r)
      return p(r, e, t.map), () => {
        s(r);
      };
  }, [e, r, t.map]);
};
export {
  a as useUpdateEventListenerMap,
  u as useUpdateProp
};
//# sourceMappingURL=hooks.js.map
