import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { SwipeableDrawer, Button, List, Divider, Grid } from '@material-ui/core'; import { mailFolderListItems, otherMailFolderListItems } from './menuData'; const styles = { list: { width: 250, }, fullList: { width: 'auto', }, }; class SwipeDrawer extends React.Component { state = { top: false, left: false, bottom: false, right: false, }; toggleDrawer = (side, open) => () => { this.setState({ [side]: open, }); }; render() { const { classes } = this.props; const sideList = (