import * as React from "react"; import { Row, Col } from "../../../ui/index"; import { Content } from "../../../constants"; import { factoryReset, updateConfig } from "../../actions"; import { ToggleButton } from "../../../controls/toggle_button"; import { BotConfigInputBox } from "../bot_config_input_box"; import { FactoryResetRowProps } from "./interfaces"; import { ColWidth } from "../farmbot_os_settings"; import { t } from "../../../i18next_wrapper"; export function FactoryResetRow(props: FactoryResetRowProps) { const { dispatch, sourceFbosConfig, botOnline } = props; const disableFactoryReset = sourceFbosConfig("disable_factory_reset"); const maybeDisableTimer = disableFactoryReset.value ? { color: "grey" } : {}; return
{t(Content.FACTORY_RESET_WARNING)}
{t(Content.AUTO_FACTORY_RESET)}
{t(Content.AUTO_FACTORY_RESET_PERIOD)}