UNPKG

geostyler

Version:
35 lines (34 loc) 942 B
import { jsx as e } from "react/jsx-runtime"; import { Form as l, InputNumber as m } from "antd"; /* empty css */ import { isGeoStylerFunction as i } from "geostyler-style"; import { useGeoStylerLocale as a } from "../../context/GeoStylerContext/GeoStylerContext.js"; const f = ({ value: o, onChange: r, ...t }) => { const n = a("ScaleDenominator"); return i(o) ? /* @__PURE__ */ e("span", { children: "GeostylerFunction currently not supported'" }) : /* @__PURE__ */ e( l.Item, { className: "gs-min-scaledenominator", label: n.minScaleDenominatorLabelText, colon: !1, ...t, children: /* @__PURE__ */ e( m, { className: "gs-min-scaledenominator-input", value: o, min: 0, placeholder: n.minScaleDenominatorPlaceholderText, onChange: r } ) } ); }; export { f as MinScaleDenominator };