import * as React from "react"; import { Row, Col } from "../../../ui"; import { ColWidth } from "../farmbot_os_settings"; import { t } from "../../../i18next_wrapper"; import { Highlight } from "../maybe_highlight"; import { DeviceSetting } from "../../../constants"; import { DevSettings } from "../../../account/dev/dev_support"; export interface FbosButtonRowProps { botOnline: boolean; label: DeviceSetting; description: string; buttonText: string; color: string; action: () => void; } export const FbosButtonRow = (props: FbosButtonRowProps) => { const newFormat = DevSettings.futureFeaturesEnabled(); return {!newFormat &&

{t(props.description)}

}
{newFormat &&

{t(props.description)}

}
; };