import * as React from "react"; import { GetWebAppConfigValue, setWebAppConfigValue, } from "../config_storage/actions"; import { t } from "../i18next_wrapper"; import { Row, Col } from "../ui"; import { NumericSetting } from "../session_keys"; import { NumberConfigKey as WebAppNumberConfigKey, } from "farmbot/dist/resources/configs/web_app"; interface LengthInputProps { value: number; label: string; setting: WebAppNumberConfigKey; dispatch: Function; } const LengthInput = (props: LengthInputProps) => props.dispatch(setWebAppConfigValue( props.setting, e.currentTarget.value))} /> ; export interface MapSizeInputsProps { dispatch: Function; getConfigValue: GetWebAppConfigValue; } export const MapSizeInputs = (props: MapSizeInputsProps) =>
;