import * as classNames from "classnames"; import { observer } from "mobx-react"; import * as React from "react"; import { Grid, Header, Icon, Item } from "semantic-ui-react"; import { injectState, StateBase } from "@app/state"; import { SprinklersDevice } from "@common/sprinklers"; import { ProgramTable, RunSectionForm, SectionRunnerView, SectionTable } from "."; function ConnectionState({ connected, className }: { connected: boolean, className?: string }) { const classes = classNames({ "device--connectionState": true, "device--connectionState-connected": connected, "device--connectionState-disconnected": !connected, }, className); return (