summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/containers/Templates/Outer.js
blob: f6448bec75dd9388ecc6ca395a4b0c1d63ffd9d3 (plain)
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
32
33
34
import React from 'react';
import { PropTypes } from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import brand from 'ba-api/brand';
import logo from 'ba-images/logo.svg';
import { Hidden } from '@material-ui/core';
import styles from './appStyles-jss';

function Outer(props) {
  const {
    classes,
    children,
  } = props;
  return (
    <div className={classes.appFrameOuter}>
      <main className={classes.outerContent} id="mainContent">
        <Hidden mdUp>
          <div className={classes.brand}>
            <img src={logo} alt={brand.name} />
            <h3>{brand.name}</h3>
          </div>
        </Hidden>
        {children}
      </main>
    </div>
  );
}

Outer.propTypes = {
  classes: PropTypes.object.isRequired,
  children: PropTypes.node.isRequired,
};

export default (withStyles(styles)(Outer));