mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
|
|
import { makeStyles } from '@mui/styles';
|
|
import AppBar from '@mui/material/AppBar';
|
|
import Toolbar from '@mui/material/Toolbar';
|
|
import Typography from '@mui/material/Typography';
|
|
import Container from '@mui/material/Container';
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
root: {
|
|
// flexGrow: 1,
|
|
display: 'flex',
|
|
},
|
|
content: {
|
|
flexGrow: 1,
|
|
height: '100vh',
|
|
overflow: 'auto',
|
|
},
|
|
appBar: {
|
|
zIndex: theme.zIndex.drawer + 1,
|
|
},
|
|
appBarSpacer: theme.mixins.toolbar,
|
|
}));
|
|
|
|
export default function PlainLayout(props) {
|
|
const classes = useStyles();
|
|
return (
|
|
<div className={classes.root}>
|
|
<AppBar className={classes.appBar}>
|
|
<Toolbar>
|
|
<Typography variant="h6" className={classes.title}>
|
|
{props && props.title ? props.title : 'BBGO Setup Wizard'}
|
|
</Typography>
|
|
</Toolbar>
|
|
</AppBar>
|
|
|
|
<main className={classes.content}>
|
|
<div className={classes.appBarSpacer} />
|
|
<Container>{props.children}</Container>
|
|
</main>
|
|
</div>
|
|
);
|
|
}
|