import * as classNames from "classnames";
import { observer } from "mobx-react";
import * as React from "react";
import FontAwesome = require("react-fontawesome");
import { Header, Item } from "semantic-ui-react";
import { ProgramTable, RunSectionForm, SectionRunnerView, SectionTable } from ".";
import { SprinklersDevice } from "@common/sprinklers";
const ConnectionState = ({ connected }: { connected: boolean }) => {
const classes = classNames({
"device--connectionState": true,
"device--connectionState-connected": connected,
"device--connectionState-disconnected": !connected,
});
return (
{connected ? "Connected" : "Disconnected"}
);
};
@observer
export default class DeviceView extends React.Component<{ device: SprinklersDevice }> {
render() {
const { id, connected, sections, programs, sectionRunner } = this.props.device;
return (
-
("@app/images/raspberry_pi.png")} />
Raspberry Pi Grinklers Instance
);
}
}