import * as React from "react"; import { FarmbotOsProps, Feature, FarmbotSettingsProps } from "../interfaces"; import { Widget, WidgetHeader, WidgetBody } from "../../ui"; import { isBotOnlineFromState } from "../must_be_online"; import { CameraSelection } from "./fbos_settings/camera_selection"; import { FarmbotOsRow } from "./fbos_settings/farmbot_os_row"; import { AutoUpdateRow } from "./fbos_settings/auto_update_row"; import { AutoSyncRow } from "./fbos_settings/auto_sync_row"; import { PowerAndReset } from "./fbos_settings/power_and_reset"; import { BootSequenceSelector } from "./fbos_settings/boot_sequence_selector"; import { OtaTimeSelectorRow } from "./fbos_settings/ota_time_selector"; import { NameRow } from "./fbos_settings/name_row"; import { TimezoneRow } from "./fbos_settings/timezone_row"; import { Firmware } from "./fbos_settings/firmware"; import { Highlight } from "./maybe_highlight"; import { Header } from "./hardware_settings/header"; import { DeviceSetting } from "../../constants"; import { Collapse } from "@blueprintjs/core"; import { DevSettings } from "../../account/dev/dev_support"; export enum ColWidth { label = 3, description = 7, button = 2 } export const FarmBotSettings = (props: FarmbotSettingsProps) => { const { dispatch, device, shouldDisplay, timeSettings, sourceFbosConfig, botOnline, } = props; const commonProps = { dispatch }; return {DevSettings.futureFeaturesEnabled() &&
} {shouldDisplay(Feature.boot_sequence) && } ; }; export class FarmbotOsSettings extends React.Component { render() { const { bot, sourceFbosConfig } = this.props; const botOnline = isBotOnlineFromState(bot); return ; } }