aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/reports/ReportNavbar.js
blob: 93c01a06c476931d75ff73abbe9f7f9459f6cd0a (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 { AppBar, Toolbar, Typography, List, ListItem, ListItemText, ListItemIcon, Divider, Drawer, makeStyles, IconButton, Hidden } from '@material-ui/core';

import MenuIcon from '@material-ui/icons/Menu';
import t from '../../common/localization';

const useStyles = makeStyles(theme => ({
  menuButton: {
  }
}));
const ReportNavbar = ({ openDrawer, setOpenDrawer, reportName }) => {
  
  const classes = useStyles();

  return (
    <AppBar position="fixed" color="inherit">
      <Toolbar>
        <IconButton
          color="inherit"
          aria-label="open drawer"
          edge="start"
          onClick={() => setOpenDrawer(!openDrawer)}
          className={classes.menuButton}>
          <MenuIcon />
        </IconButton>
        <Typography variant="h6" noWrap>
          {t('reportTitle')} / {reportName}
        </Typography>        
      </Toolbar>
    </AppBar> 
  )
}

export default ReportNavbar;