import { jsx as t, Fragment as m } from "react/jsx-runtime";
import { map as s } from "es-toolkit/compat";
import { MAP_LAYER_ROAD_RESTRICTIONS as e, MAP_LAYER_INCIDENTS as c, MAP_LAYER_TRAFFIC as o } from "../../constants.js";
import f from "./overlayLayers/IncidentsLayer.js";
import R from "./overlayLayers/RoadRestrictionLayer.js";
import p from "./overlayLayers/TrafficLayer.js";
const T = (a) => {
  const { layers: n } = a, i = s(n, (r) => {
    switch (r) {
      case o:
        return /* @__PURE__ */ t(p, { id: o }, r);
      case c:
        return /* @__PURE__ */ t(f, {}, r);
      case e:
        return /* @__PURE__ */ t(R, { id: e }, r);
      default:
        return null;
    }
  });
  return /* @__PURE__ */ t(m, { children: i });
};
export {
  T as default
};
//# sourceMappingURL=MapOverlayLayers.js.map
