import React from "react"; import { observer } from "mobx-react"; import { Loader } from "eez-studio-ui/loader"; import { BB3Instrument } from "instrument/bb3/objects/BB3Instrument"; import { Section } from "instrument/bb3/components/Section"; import { ModuleItem } from "instrument/bb3/components/modules-section/ModuleItem"; import { InstrumentAppStore } from "instrument/window/app-store"; export const ModulesSection = observer( ({ bb3Instrument, appStore }: { bb3Instrument: BB3Instrument; appStore: InstrumentAppStore; }) => { const isConnected = bb3Instrument.instrument.isConnected; let body; if (bb3Instrument.refreshInProgress) { body = ; } else if (bb3Instrument.modules) { body = ( <> {bb3Instrument.modules.map(module => ( ))}
Slot # Model Revision Firmware
{isConnected && ( )} ); } else { body = (
Failed to get modules info from the instrument!
); } return
; } );