geostyler
Version:
Framework for styling geodata
28 lines (27 loc) • 745 B
JavaScript
import { jsx as e } from "react/jsx-runtime";
import { Switch as c } from "antd";
/* empty css */
import { useGeoStylerLocale as o } from "../../../../context/GeoStylerContext/GeoStylerContext.js";
const n = ({
onChange: l,
value: r,
...d
}) => {
const i = o("ElseRuleField");
return /* @__PURE__ */ e("span", { className: "editor-field gs-elserule-field", children: /* @__PURE__ */ e(
c,
{
checked: r === void 0 ? !1 : r,
onChange: (s) => {
l == null || l(s);
},
checkedChildren: /* @__PURE__ */ e("span", { children: i.on }),
unCheckedChildren: /* @__PURE__ */ e("span", { children: i.off }),
...d
}
) });
};
export {
n as ElseRuleField,
n as default
};