23 lines
814 B
TypeScript
23 lines
814 B
TypeScript
import type { ComponentType } from "react";
|
|
|
|
import type { PageComponentProps, PageId } from "../contracts/page";
|
|
import { AiProvidersPage } from "./AiProvidersPage";
|
|
import { HomePage } from "./HomePage";
|
|
import { MaintenancePage } from "./MaintenancePage";
|
|
import { PluginsPage } from "./PluginsPage";
|
|
import { ProfileSettingsPage } from "./ProfileSettingsPage";
|
|
import { ServerDetailPage } from "./ServerDetailPage";
|
|
import { ServersPage } from "./ServersPage";
|
|
import { UsersPage } from "./UsersPage";
|
|
|
|
export const pageRegistry: Record<PageId, ComponentType<PageComponentProps>> = {
|
|
home: HomePage,
|
|
servers: ServersPage,
|
|
serverDetail: ServerDetailPage,
|
|
plugins: PluginsPage,
|
|
profileSettings: ProfileSettingsPage,
|
|
users: UsersPage,
|
|
aiProviders: AiProvidersPage,
|
|
maintenance: MaintenancePage
|
|
};
|