aboutsummaryrefslogtreecommitdiffstats
path: root/src/web/src/components/System/System.js
blob: bbba292d7d3b9759732bef81b612b55a34f4c264 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React, { Component } from 'react';
import { Segment, Tab } from 'semantic-ui-react';
import './System.css';
import Info from './Info';
import Logs from './Logs';
import Options from './Options';

class System extends Component {
  componentDidMount = () => {
  }

  componentWillUnmount = () => {

  }

  render = () => {
    return (
      <div className='system'>
        <Segment raised>
          <Tab panes={[
            { menuItem: 'Info', render: () => <Tab.Pane><Info state={this.props.state}/></Tab.Pane> },
            { menuItem: 'Options', render: () => <Tab.Pane><Options options={this.props.options}/></Tab.Pane> },
            { menuItem: 'Logs', render: () => <Tab.Pane><Logs/></Tab.Pane> },
          ]}/>
        </Segment>
      </div>
    );
  }
}

export default System;