2023-05-04 15:55:24 +00:00
|
|
|
import { ReactElement } from "react";
|
|
|
|
import { Configs } from "./Configs";
|
|
|
|
import {
|
|
|
|
Chat20Regular,
|
|
|
|
DataUsageSettings20Regular,
|
|
|
|
DocumentSettings20Regular,
|
|
|
|
Home20Regular, Info20Regular, Settings20Regular, Storage20Regular
|
|
|
|
} 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-04 15:55:24 +00:00
|
|
|
|
|
|
|
type NavigationItem = {
|
|
|
|
label: string;
|
|
|
|
path: string;
|
|
|
|
icon: ReactElement;
|
|
|
|
element: ReactElement;
|
|
|
|
top: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const pages: NavigationItem[] = [
|
|
|
|
{
|
|
|
|
label: "Home",
|
|
|
|
path: "/",
|
|
|
|
icon:<Home20Regular />,
|
|
|
|
element: <Home />,
|
|
|
|
top: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Chat",
|
|
|
|
path: "/chat",
|
|
|
|
icon:<Chat20Regular />,
|
2023-05-05 15:23:34 +00:00
|
|
|
element: <Chat />,
|
2023-05-04 15:55:24 +00:00
|
|
|
top:true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Configs",
|
|
|
|
path: "/configs",
|
|
|
|
icon:<DocumentSettings20Regular />,
|
|
|
|
element: <Configs />,
|
|
|
|
top:true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Models",
|
|
|
|
path: "/models",
|
|
|
|
icon:<DataUsageSettings20Regular />,
|
2023-05-05 15:23:34 +00:00
|
|
|
element: <Models />,
|
2023-05-04 15:55:24 +00:00
|
|
|
top:true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Train",
|
|
|
|
path: "/train",
|
|
|
|
icon:<Storage20Regular />,
|
2023-05-05 15:23:34 +00:00
|
|
|
element: <Train />,
|
2023-05-04 15:55:24 +00:00
|
|
|
top:true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Settings",
|
|
|
|
path: "/settings",
|
|
|
|
icon:<Settings20Regular />,
|
2023-05-05 15:23:34 +00:00
|
|
|
element: <Settings />,
|
2023-05-04 15:55:24 +00:00
|
|
|
top:false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "About",
|
|
|
|
path: "/about",
|
|
|
|
icon:<Info20Regular />,
|
2023-05-05 15:23:34 +00:00
|
|
|
element: <About />,
|
2023-05-04 15:55:24 +00:00
|
|
|
top:false
|
|
|
|
}
|
|
|
|
];
|