52 lines
1 KiB
JavaScript
52 lines
1 KiB
JavaScript
import {
|
|
CalendarMonth,
|
|
CalendarMonthOutlined,
|
|
Home,
|
|
HomeOutlined,
|
|
Info,
|
|
InfoOutlined,
|
|
} from '@mui/icons-material';
|
|
|
|
const avatarMenuOptions = (navigate, logout) => [
|
|
{
|
|
text: 'Meu Perfil',
|
|
action: () => navigate('/profile', { replace: true }),
|
|
},
|
|
{
|
|
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 === '/' ||
|
|
activePath.indexOf('class') !== -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 };
|