import * as React from "react"; import { LayerToggle } from "../legend/layer_toggle"; import { GardenMapLegendProps } from "../interfaces"; import { atMaxZoom, atMinZoom } from "../zoom"; import { ImageFilterMenu } from "../layers/images/image_filter_menu"; import { BugsControls } from "../easter_eggs/bugs"; import { State } from "../../interfaces"; import { MoveModeLink } from "../../move_to"; import { GetWebAppConfigValue } from "../../../config_storage/actions"; import { BooleanSetting } from "../../../session_keys"; import { DevSettings } from "../../../account/dev/dev_support"; import { t } from "../../../i18next_wrapper"; export const ZoomControls = ({ zoom, getConfigValue }: { zoom: (value: number) => () => void, getConfigValue: GetWebAppConfigValue }) => { const plusBtnClass = atMaxZoom(getConfigValue) ? "disabled" : ""; const minusBtnClass = atMinZoom(getConfigValue) ? "disabled" : ""; return
; }; export const PointsSubMenu = ({ toggle, getConfigValue }: { toggle: (property: keyof State) => () => void, getConfigValue: GetWebAppConfigValue }) =>
; const LayerToggles = (props: GardenMapLegendProps) => { const { toggle, getConfigValue } = props; return
: undefined} /> } /> {DevSettings.futureFeaturesEnabled() && } {DevSettings.futureFeaturesEnabled() && props.hasSensorReadings && }
; }; export function GardenMapLegend(props: GardenMapLegendProps) { const menuClass = props.legendMenuOpen ? "active" : ""; return
{t("Menu")}
; }