-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.ts
42 lines (36 loc) · 916 Bytes
/
routes.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
import React from 'react';
// Container
import _NoMatch from './core/containers/NoMatch';
import HelloWorld from "./helloworld/containers/HelloWorld";
import { BreadcrumbData } from "use-react-router-breadcrumbs";
export interface IRoute {
icon?: React.FC;
activeIcon?: React.FC;
path: string;
component: React.FC<any>;
breadcrumb: string | ((props: BreadcrumbData<string>) => JSX.Element);
props?: any;
}
const pocData: any = {
data: {
editorData: null,
},
setter: {
updateEditorData: (value: any) => {
pocData.data.editorData = value;
},
},
};
const routes: IRoute[] = [
{
path: '/',
component: HelloWorld,
breadcrumb: 'Hello World',
},
{
path: '*',
component: _NoMatch,
breadcrumb: 'NoMatch',
},
];
export default routes;