UNPKG

geostyler

Version:
35 lines (34 loc) 762 B
import { jsx as o } from "react/jsx-runtime"; import { Select as i } from "antd"; import { useGeoStylerLocale as d } from "../../../../context/GeoStylerContext/GeoStylerContext.js"; const s = i.Option, k = ({ onChange: l, value: n = "Mark", symbolizerKinds: r = ["Mark", "Fill", "Icon", "Line", "Text", "Raster"] }) => { const c = d("KindField"), a = r.map( (e) => { var t; return /* @__PURE__ */ o( s, { value: e, children: ((t = c.symbolizerKinds) == null ? void 0 : t[e]) || e }, e ); } ); return /* @__PURE__ */ o( i, { className: "editor-field kind-field", value: n, onChange: l, children: a } ); }; export { k as KindField };