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