2026-08-03 13:47:24 +08:00
|
|
|
import { createRootRoute, createRoute, Outlet } from "@tanstack/react-router"
|
|
|
|
|
|
2026-08-07 13:29:31 +08:00
|
|
|
import { HomePage } from "@/features/home/pages/home-page"
|
2026-08-09 09:34:46 +08:00
|
|
|
import { SelectionResultsPage } from "@/features/selection/pages/selection-results-page"
|
2026-08-03 13:47:24 +08:00
|
|
|
|
|
|
|
|
const rootRoute = createRootRoute({
|
|
|
|
|
component: () => <Outlet />,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const indexRoute = createRoute({
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
path: "/",
|
2026-08-07 13:29:31 +08:00
|
|
|
component: HomePage,
|
2026-08-03 13:47:24 +08:00
|
|
|
})
|
|
|
|
|
|
2026-08-09 09:34:46 +08:00
|
|
|
const selectionRoute = createRoute({
|
|
|
|
|
getParentRoute: () => rootRoute,
|
|
|
|
|
path: "/selection",
|
|
|
|
|
component: SelectionResultsPage,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export const routeTree = rootRoute.addChildren([indexRoute, selectionRoute])
|