-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
41 lines (37 loc) · 1.13 KB
/
index.ts
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
import AddTaskIcon from '@mui/icons-material/AddTask';
import ConnectWithoutContactIcon from '@mui/icons-material/ConnectWithoutContact';
import GitHubIcon from '@mui/icons-material/GitHub';
import HomeIcon from '@mui/icons-material/Home';
import asyncComponentLoader from '@/utils/loader';
import { Pages, Routes } from './types';
const routes: Routes = {
[Pages.AboutMe]: {
component: asyncComponentLoader(() => import('@/pages/AboutMe')),
path: '/',
title: 'About Me',
icon: HomeIcon,
},
[Pages.Portfolio]: {
component: asyncComponentLoader(() => import('@/pages/Portfolio')),
path: '/portfolio',
title: 'Portfolio',
icon: GitHubIcon,
},
[Pages.Resume]: {
component: asyncComponentLoader(() => import('@/pages/Resume')),
path: '/resume',
title: 'Resume',
icon: AddTaskIcon,
},
[Pages.Contact]: {
component: asyncComponentLoader(() => import('@/pages/Contact')),
path: '/contact',
title: 'Contact',
icon: ConnectWithoutContactIcon,
},
[Pages.NotFound]: {
component: asyncComponentLoader(() => import('@/pages/NotFound')),
path: '*',
},
};
export default routes;