-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
index.ts
48 lines (44 loc) · 1.28 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
42
43
44
45
46
47
48
import AddTaskIcon from '@mui/icons-material/AddTask';
import BugReportIcon from '@mui/icons-material/BugReport';
import GitHubIcon from '@mui/icons-material/GitHub';
import HomeIcon from '@mui/icons-material/Home';
import TerrainIcon from '@mui/icons-material/Terrain';
import asyncComponentLoader from '@/utils/loader';
import { Pages, Routes } from './types';
const routes: Routes = {
[Pages.Welcome]: {
component: asyncComponentLoader(() => import('@/pages/Welcome')),
path: '/',
title: 'Welcome',
icon: HomeIcon,
},
[Pages.Page1]: {
component: asyncComponentLoader(() => import('@/pages/Page1')),
path: '/page-1',
title: 'Page 1',
icon: GitHubIcon,
},
[Pages.Page2]: {
component: asyncComponentLoader(() => import('@/pages/Page2')),
path: '/page-2',
title: 'Page 2',
icon: AddTaskIcon,
},
[Pages.Page3]: {
component: asyncComponentLoader(() => import('@/pages/Page3')),
path: '/page-3',
title: 'Page 3',
icon: TerrainIcon,
},
[Pages.Page4]: {
component: asyncComponentLoader(() => import('@/pages/Page4')),
path: '/page-4',
title: 'Page 4',
icon: BugReportIcon,
},
[Pages.NotFound]: {
component: asyncComponentLoader(() => import('@/pages/NotFound')),
path: '*',
},
};
export default routes;