-
Notifications
You must be signed in to change notification settings - Fork 52
/
content.js
37 lines (35 loc) · 1007 Bytes
/
content.js
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
35
36
37
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
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 Icon from '@material-ui/core/Icon';
import config from 'config';
const useStyles = makeStyles({
list: {
width: 250,
},
});
export default function Content() {
const classes = useStyles();
return (
<div
className={classes.list}
role="presentation"
>
<List>
{
config.sidenav && config.sidenav.items && config.sidenav.items.map((item, index) => (
<ListItem button component="a" href={item.path} key={index}>
<ListItemIcon>
<Icon>{item.icon}</Icon>
</ListItemIcon>
<ListItemText primary={item.label} />
</ListItem>
))
}
</List>
</div>
);
}