import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import InboxIcon from '@material-ui/icons/MoveToInbox';
import SendIcon from '@material-ui/icons/Send';
import ReportIcon from '@material-ui/icons/Report';
import StarIcon from '@material-ui/icons/Star';
import Flag from '@material-ui/icons/Flag';
import People from '@material-ui/icons/People';
import QuestionAnswer from '@material-ui/icons/QuestionAnswer';
import LabelIcon from '@material-ui/icons/Label';
import Add from '@material-ui/icons/Add';
import {
Drawer,
List,
ListItem,
ListItemIcon,
ListItemText,
Hidden,
Button,
Divider,
} from '@material-ui/core';
import styles from './email-jss';
const MenuList = props => {
const {
classes,
compose,
goto,
selected,
} = props;
return (
goto('inbox')}>
goto('stared')}>
goto('sent')}>
goto('spam')}>
goto('updates')}>
goto('social')}>
goto('promos')}>
goto('forums')}>
);
};
MenuList.propTypes = {
classes: PropTypes.object.isRequired,
compose: PropTypes.func.isRequired,
goto: PropTypes.func.isRequired,
selected: PropTypes.string.isRequired,
};
const MenuEmail = withStyles(styles)(MenuList);
class EmailSidebar extends React.Component {
render() {
const {
classes,
compose,
goto,
selected,
handleDrawerToggle,
mobileOpen
} = this.props;
return (
);
}
}
EmailSidebar.propTypes = {
classes: PropTypes.object.isRequired,
compose: PropTypes.func.isRequired,
goto: PropTypes.func.isRequired,
handleDrawerToggle: PropTypes.func.isRequired,
selected: PropTypes.string.isRequired,
mobileOpen: PropTypes.bool.isRequired,
};
export default withStyles(styles)(EmailSidebar);