UNPKG

geostyler

Version:
37 lines (36 loc) 755 B
import { jsx as o } from "react/jsx-runtime"; import { Select as t } from "antd"; import { useGeoStylerLocale as m } from "../../../../context/GeoStylerContext/GeoStylerContext.js"; const d = t.Option, G = ({ onChange: i, value: c, graphicTypes: l = ["Mark", "Icon"], clearable: n = !0, ...p }) => { const r = m("GraphicTypeField"), a = l.map((e) => { const s = (r == null ? void 0 : r[e]) || e; return /* @__PURE__ */ o( d, { value: e, children: s }, e ); }); return /* @__PURE__ */ o( t, { className: "editor-field graphictype-field", value: c, onChange: i, allowClear: n, ...p, children: a } ); }; export { G as GraphicTypeField };