UNPKG

geostyler

Version:
36 lines (35 loc) 1.1 kB
import { jsxs as t, Fragment as a, jsx as i } from "react/jsx-runtime"; import { Select as r } from "antd"; import { useState as p } from "react"; /* empty css */ import { useGeoStylerLocale as b } from "../../../context/GeoStylerContext/GeoStylerContext.js"; const o = r.Option, f = ({ changeHandler: l }) => { const e = b("SLDUnitsSelect"), [n, m] = p(), c = (s) => { m(s), l && l(s); }; return /* @__PURE__ */ t(a, { children: [ /* @__PURE__ */ t("span", { className: "symbolizer-units-label", children: [ e.symbolizerUnitsLabel, ":" ] }), /* @__PURE__ */ t( r, { className: "gs-code-editor-format-select", style: { width: 100 }, onSelect: c, value: n, children: [ /* @__PURE__ */ i(o, { value: "pixel", children: e.symbolizerUnitsPixel }), /* @__PURE__ */ i(o, { value: "metre", children: e.symbolizerUnitsMeter }), /* @__PURE__ */ i(o, { value: "foot", children: e.symbolizerUnitsFoot }) ] } ) ] }); }; export { f as SLDUnitsSelect };