import { jsx as e } from "react/jsx-runtime";
import { noop as n } from "es-toolkit/function";
import { MAP_LAYER_INCIDENTS as o } from "../../../constants.js";
import s from "../MapSettingsItem.js";
import { MapIcon as a, CONSTRUCTION_INACTIVE as I, CONSTRUCTION_ACTIVE as p } from "../../../../icons/MapIcon.js";
const f = (t) => {
  const { activeBuiltinLayers: i = [], onMapLayerChange: r = n, onToggle: m = n, ...c } = t;
  return /* @__PURE__ */ e(
    s,
    {
      className: "MapLayerIncidents",
      onClick: () => {
        r(o), m();
      },
      isActive: i.includes(o),
      activeIcon: /* @__PURE__ */ e(a, { name: p }),
      inactiveIcon: /* @__PURE__ */ e(a, { name: I }),
      ...c
    }
  );
};
export {
  f as default
};
//# sourceMappingURL=MapLayerIncidentsItem.js.map
