import * as React from "react"; import { observer } from "mobx-react"; import { SprinklersDevice } from "./sprinklers"; import "semantic-ui-css/semantic.min.css"; import "app/style/app.css"; import { Item } from "semantic-ui-react"; import * as classNames from "classnames"; @observer class Device extends React.Component<{ device: SprinklersDevice }, any> { render() { const {id, connected} = this.props.device; return ( Device {id} {connected ? "Connected" : "Disconnected"} ); } } @observer export default class App extends React.Component<{ device: SprinklersDevice }, any> { render() { return } }