UNPKG

geostyler

Version:
33 lines (32 loc) 774 B
import { jsx as o } from "react/jsx-runtime"; import { Select as a } from "antd"; /* empty css */ import { useGeoStylerLocale as r } from "../../../context/GeoStylerContext/GeoStylerContext.js"; const u = ({ classifications: l = ["equalInterval", "quantile", "logarithmic", "kmeans"], onChange: t, classification: c }) => { const s = r("ClassificationCombo"), n = l.map((i) => /* @__PURE__ */ o( a.Option, { className: "classification-option", value: i, children: s[i] || i }, i )); return /* @__PURE__ */ o( a, { className: "classification-combo", optionFilterProp: "children", value: c, onChange: t, children: n } ); }; export { u as ClassificationCombo };