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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
import {
CalendarMonth,
CalendarMonthOutlined,
Home,
HomeOutlined,
Info,
InfoOutlined,
} from '@mui/icons-material';
const avatarMenuOptions = (navigate, logout) => [
{
text: 'Meu Perfil',
action: () => navigate('/profile'),
},
{
text: 'Sair',
action: logout,
},
];
const menuOptions = activePath => [
{
id: 0,
text: 'Página Inicial',
selectedIcon: <Home />,
unselectedIcon: <HomeOutlined />,
pathname: '/home',
isActive:
activePath === '/home' ||
activePath === '/login' ||
activePath === '/register' ||
activePath === '/profile' ||
activePath === '/' ||
activePath.indexOf('class') !== -1 ||
activePath.indexOf('assignment') !== -1,
},
{
id: 1,
text: 'Informações',
selectedIcon: <Info />,
unselectedIcon: <InfoOutlined />,
pathname: '/info',
isActive: activePath === '/info',
},
{
id: 2,
text: 'Calendário',
selectedIcon: <CalendarMonth />,
unselectedIcon: <CalendarMonthOutlined />,
pathname: '/calendar',
isActive: activePath === '/calendar',
},
];
export { menuOptions, avatarMenuOptions };
|