Files
league-of-legends-gui-overhaul/src/config/routes.tsx
ToxicCrzay270 45b96ec20f
All checks were successful
Release Dry Run / release-dry-run (push) Successful in 12s
Codex Template Compliance / template-compliance (push) Successful in 6s
Initialize League GUI prototype
2026-05-15 00:41:38 +02:00

50 lines
1.1 KiB
TypeScript

import type { ComponentType } from "react";
import { ChampionDetailPage } from "../pages/ChampionDetailPage";
import { ChampionsPage } from "../pages/ChampionsPage";
import { HomePage } from "../pages/HomePage";
import { PlayPage } from "../pages/PlayPage";
import { ProfilePage } from "../pages/ProfilePage";
import { SettingsPage } from "../pages/SettingsPage";
import type { AppRoute } from "../types/navigation";
type RouteComponent = ComponentType;
export const appRoutes: Array<AppRoute & { component: RouteComponent }> = [
{
id: "home",
title: "Home",
path: "/",
component: HomePage
},
{
id: "play",
title: "Play",
path: "/play",
component: PlayPage
},
{
id: "champions",
title: "Champions",
path: "/champions",
component: ChampionsPage
},
{
id: "champion-detail",
title: "Champion Detail",
path: "/champions/:championId",
component: ChampionDetailPage
},
{
id: "profile",
title: "Profile",
path: "/profile",
component: ProfilePage
},
{
id: "settings",
title: "Settings",
path: "/settings",
component: SettingsPage
}
];