@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
12 lines • 703 B
JavaScript
import React from "react";
import { useTranslation } from "react-i18next";
export const GeographySwitcher = (props) => {
const { geographies, curGeographyId, changeGeography } = props;
const { t } = useTranslation();
return (React.createElement("select", { onChange: changeGeography, value: curGeographyId, "aria-label": t("Select geography") }, geographies.map((geography) => {
/* i18next-extract-disable-next-line */
const transString = t(geography.display || "");
return (React.createElement("option", { key: geography.geographyId, value: geography.geographyId, "aria-label": transString }, transString));
})));
};
//# sourceMappingURL=GeographySwitcher.js.map