import React, { useState } from 'react';
import { useHistory } from 'react-router-dom';
import { makeStyles } from '@material-ui/core/styles';
import { useDispatch, useSelector } from 'react-redux';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import IconButton from '@material-ui/core/IconButton';
import MenuIcon from '@material-ui/icons/Menu';
import CloseIcon from '@material-ui/icons/Close';
import Drawer from '@material-ui/core/Drawer';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import MapIcon from '@material-ui/icons/Map';
import PersonIcon from '@material-ui/icons/Person';
import DescriptionIcon from '@material-ui/icons/Description';
import ReplayIcon from '@material-ui/icons/Replay';
import * as selectors from './common/selectors';
import { useTranslation } from './LocalizationProvider';
const useStyles = makeStyles((theme) => ({
flex: {
flexGrow: 1,
},
appBar: {
zIndex: theme.zIndex.drawer + 1,
},
list: {
width: 250,
},
menuButton: {
marginLeft: -12,
marginRight: 20,
},
}));
const MainToolbar = () => {
const classes = useStyles();
const history = useHistory();
const t = useTranslation();
const userId = useSelector(selectors.getUserId);
const [drawer, setDrawer] = useState(false);
const openDrawer = () => { setDrawer(true); };
const closeDrawer = () => { setDrawer(false); };
const handleClose = async () => {
history.push ('/');
};
return (
<>
ETBSA
history.push('/')}>
history.push('/replay')}>
history.push('/reports/route')}>
history.push('/settings/notifications')}
>
>
);
};
export default MainToolbar;