text: import React from 'react';
  import clsx from 'clsx';
  import { makeStyles, useTheme } from '@material-ui/core/styles';
  import Drawer from '@material-ui/core/Drawer';
  import AppBar from '@material-ui/core/AppBar';
  import Toolbar from '@material-ui/core/Toolbar';
  import List from '@material-ui/core/List';
  import Link from '@material-ui/core/Link';
  import CssBaseline from '@material-ui/core/CssBaseline';
  import Typography from '@material-ui/core/Typography';
  import Divider from '@material-ui/core/Divider';
  import IconButton from '@material-ui/core/IconButton';
  import MenuIcon from '@material-ui/icons/Menu';
  import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
  import ChevronRightIcon from '@material-ui/icons/ChevronRight';
  import ListItem from '@material-ui/core/ListItem';
  import ListItemIcon from '@material-ui/core/ListItemIcon';
  import ListItemText from '@material-ui/core/ListItemText';
  import InboxIcon from '@material-ui/icons/MoveToInbox';
  import Apps from '@material-ui/icons/Apps';
  import Dashboard from '@material-ui/icons/Dashboard';
  import Person from '@material-ui/icons/Person';
  import Group from '@material-ui/icons/Group';
  import BusinessCenter from '@material-ui/icons/BusinessCenter';
  import TabMenu from '../TabMenu'
  import TabMenus from '../TabMenus'
  
  
  const drawerWidth = 240;
  
  const links = [
    'Dashboard',
    'Organization', 
    'Applications', 
    'Employees', 
    'Groups'
  ];
  
  const useStyles = makeStyles(theme => ({
    root: {
      display: 'flex',
      color: console.log(theme, 'theme')
    },
    appBar: {
      zIndex: theme.zIndex.drawer + 1,
      transition: theme.transitions.create(['width', 'margin'], {
        easing: theme.transitions.easing.sharp,
        duration: theme.transitions.duration.leavingScreen,
      }),
    },
    appBarShift: {
      marginLeft: drawerWidth,
      width: `calc(100% - ${drawerWidth}px)`,
      transition: theme.transitions.create(['width', 'margin'], {
        easing: theme.transitions.easing.sharp,
        duration: theme.transitions.duration.enteringScreen,
      }),
    },
    menuButton: {
      marginRight: 36,
      color: theme.palette.common.black
    },
    hide: {
      display: 'none',
    },
    drawer: {
      width: drawerWidth,
      flexShrink: 0,
      whiteSpace: 'nowrap',
      marginTop: '80px'
    },
    drawerOpen: {
      width: drawerWidth,
      transition: theme.transitions.create('width', {
        easing: theme.transitions.easing.sharp,
        duration: theme.transitions.duration.enteringScreen,
      }),
    },
    drawerClose: {
      transition: theme.transitions.create('width', {
        easing: theme.transitions.easing.sharp,
        duration: theme.transitions.duration.leavingScreen,
      }),
      overflowX: 'hidden',
      width: theme.spacing(7) + 1,
      [theme.breakpoints.up('sm')]: {
        width: theme.spacing(7) + 1,
      },
    },
    toolbar: {
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'flex-end',
      padding: theme.spacing(0, 1),
      ...theme.mixins.toolbar,
    },
    content: {
      flexGrow: 1,
    },
  }));
  
  export default function MiniDrawer(props) {
    const classes = useStyles();
    const theme = useTheme();
    const [open, setOpen] = React.useState(false);
  
    const handleDrawerOpen = () => {
      setOpen(true);
    };
  
    const handleDrawerClose = () => {
      setOpen(false);
    };
  
    return (
      <div className={classes.root}>
        <CssBaseline />
        
        <Drawer
          variant="permanent"
          className={clsx(classes.drawer, {
            [classes.drawerOpen]: open,
            [classes.drawerClose]: !open,
          })}
          classes={{
            paper: clsx({
              [classes.drawerOpen]: open,
              [classes.drawerClose]: !open,
            }),
          }}
        >
          <div className={classes.toolbar}>
            <IconButton onClick={handleDrawerClose}>
              {theme.direction === 'rtl' ? <ChevronRightIcon /> : <ChevronLeftIcon />}
            </IconButton>
          </div>
          <Divider />
          <List>
            {links.map((text, index) => {
              switch(text){
                case 'Dashboard':
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><Dashboard /></ListItemIcon>
                      <ListItemText primary={
                        <Link href='#' color='inherit'>{text}</Link>
                      } 
                      />
                    </ListItem>
                  );
                  break;
                case 'Organization':
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><BusinessCenter /></ListItemIcon>
                      <ListItemText primary={text} />
                    </ListItem>
                  );
                  break;
                case 'Employees':
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><Person /></ListItemIcon>
                      <ListItemText primary={text} />
                    </ListItem>
                  );
                  break;
                case 'Applications':
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><Apps /></ListItemIcon>
                      <ListItemText primary={text} />
                    </ListItem>
                  );
                  break;
                case 'Groups':
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><Group /></ListItemIcon>
                      <ListItemText primary={text} />
                    </ListItem>
                  );
                  break;
                default:
                  return (
                    <ListItem button key={index}>
                      <ListItemIcon><Dashboard /></ListItemIcon>
                      <ListItemText primary={text.name} />
                    </ListItem>
                  )
              }
            })}
          </List>
          <Divider />
        </Drawer>
        <main className={classes.content}>
          {/* <div className={classes.toolbar} /> */}
          { props.content }
        </main>
      </div>
    );
  }