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