RWKV-Runner/frontend/src/pages/index.tsx

87 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-05-20 05:46:33 +00:00
import {ReactElement} from 'react';
import {Configs} from './Configs';
2023-05-04 15:55:24 +00:00
import {
2023-05-20 05:46:33 +00:00
ArrowDownload20Regular,
Chat20Regular,
DataUsageSettings20Regular,
DocumentSettings20Regular,
Home20Regular,
Info20Regular,
Settings20Regular,
Storage20Regular
2023-05-04 15:55:24 +00:00
} from '@fluentui/react-icons';
import {Home} from './Home';
2023-05-05 15:23:34 +00:00
import {Chat} from './Chat';
import {Models} from './Models';
import {Train} from './Train';
import {Settings} from './Settings';
import {About} from './About';
2023-05-20 05:46:33 +00:00
import {Downloads} from './Downloads';
2023-05-04 15:55:24 +00:00
type NavigationItem = {
2023-05-20 05:46:33 +00:00
label: string;
path: string;
icon: ReactElement;
element: ReactElement;
top: boolean;
2023-05-04 15:55:24 +00:00
};
export const pages: NavigationItem[] = [
2023-05-20 05:46:33 +00:00
{
label: 'Home',
path: '/',
icon: <Home20Regular/>,
element: <Home/>,
top: true
},
{
label: 'Chat',
path: '/chat',
icon: <Chat20Regular/>,
element: <Chat/>,
top: true
},
{
label: 'Configs',
path: '/configs',
icon: <DocumentSettings20Regular/>,
element: <Configs/>,
top: true
},
{
label: 'Models',
path: '/models',
icon: <DataUsageSettings20Regular/>,
element: <Models/>,
top: true
},
{
label: 'Downloads',
path: '/downloads',
icon: <ArrowDownload20Regular/>,
element: <Downloads/>,
top: true
},
{
label: 'Train',
path: '/train',
icon: <Storage20Regular/>,
element: <Train/>,
top: true
},
{
label: 'Settings',
path: '/settings',
icon: <Settings20Regular/>,
element: <Settings/>,
top: false
},
{
label: 'About',
path: '/about',
icon: <Info20Regular/>,
element: <About/>,
top: false
}
2023-05-04 15:55:24 +00:00
];