import * as React from "react"; import { MCUFactoryReset, bulkToggleControlPanel } from "../actions"; import { Widget, WidgetHeader, WidgetBody, SaveBtn } from "../../ui/index"; import { HardwareSettingsProps } from "../interfaces"; import { MustBeOnline, isBotUp } from "../must_be_online"; import { ToolTips } from "../../constants"; import { DangerZone } from "./hardware_settings/danger_zone"; import { PinGuard } from "./hardware_settings/pin_guard"; import { EncodersAndEndStops } from "./hardware_settings/encoders_and_endstops"; import { Motors } from "./hardware_settings/motors"; import { SpacePanelHeader } from "./hardware_settings/space_panel_header"; import { HomingAndCalibration } from "./hardware_settings/homing_and_calibration"; import { SpecialStatus } from "farmbot"; import { Popover, Position } from "@blueprintjs/core"; import { FwParamExportMenu } from "./hardware_settings/export_menu"; import { t } from "../../i18next_wrapper"; export class HardwareSettings extends React.Component { render() { const { bot, dispatch, sourceFwConfig, controlPanelState, firmwareConfig } = this.props; const { informational_settings } = this.props.bot.hardware; const firmwareVersion = informational_settings.firmware_version; const { sync_status } = informational_settings; const botDisconnected = !(isBotUp(sync_status) && this.props.botToMqttStatus === "up"); return {firmwareConfig && }
; } }