import { jsx as i } from "react/jsx-runtime";
import l from "./settings/ZoomButtons.js";
import { useMapContext as a } from "../MapContext.js";
const h = (m) => {
  const { hideZoomButtons: s, zoomAnimation: n, onZoomIn: e, onZoomOut: r } = m, { api: t } = a(), Z = () => {
    const o = (t?.utils?.getZoom() ?? 0) + 1;
    e(o), t?.utils?.setZoom(o, n);
  }, u = () => {
    const o = (t?.utils?.getZoom() ?? 0) - 1;
    r(o), t?.utils?.setZoom(o, n);
  };
  return s ? null : /* @__PURE__ */ i(l, { onZoomIn: Z, onZoomOut: u });
};
export {
  h as default
};
//# sourceMappingURL=MapZoom.js.map
