|
1 | 1 | import React from "react"; |
2 | 2 | import { Routes, Route, useNavigate, useLocation, Link } from "react-router-dom"; |
3 | | -import { Sparkles, ShoppingBag, Package, Home } from "lucide-react"; |
| 3 | +import { Sparkles, ShoppingBag, Package, Home, Globe } from "lucide-react"; |
4 | 4 | import dappnodeLogo from "img/dappnode-logo-only.png"; |
5 | 5 | import { |
6 | 6 | SidebarProvider, |
@@ -33,13 +33,18 @@ import { StorePage } from "./store/StorePage"; |
33 | 33 | import { PackagesPage } from "./packages/PackagesPage"; |
34 | 34 | import { PackageDetailPage } from "./packages/PackageDetailPage"; |
35 | 35 | import { InstallerPage } from "./installer/InstallerPage"; |
| 36 | +import { NexusPage } from "./nexus/NexusPage"; |
| 37 | +import { storeRelativePath } from "./store/data"; |
| 38 | +import { packagesRelativePath } from "./packages/data"; |
| 39 | +import { nexusRelativePath } from "./nexus/data"; |
36 | 40 |
|
37 | 41 | /* ── Navigation items ───────────────────────────────────────────────── */ |
38 | 42 |
|
39 | 43 | const navItems = [ |
40 | 44 | { label: "Overview", icon: Sparkles, path: "/ai" }, |
41 | | - { label: "Store", icon: ShoppingBag, path: "/ai/store" }, |
42 | | - { label: "Packages", icon: Package, path: "/ai/packages" } |
| 45 | + { label: "Store", icon: ShoppingBag, path: storeRelativePath }, |
| 46 | + { label: "Packages", icon: Package, path: packagesRelativePath }, |
| 47 | + { label: "Nexus", icon: Globe, path: nexusRelativePath } |
43 | 48 | ]; |
44 | 49 |
|
45 | 50 | function getBreadcrumbItems(pathname: string): { label: string; to: string }[] { |
@@ -182,6 +187,7 @@ export function AiLayout() { |
182 | 187 | <Route path="install/:id/*" element={<InstallerPage />} /> |
183 | 188 | <Route path="packages" element={<PackagesPage />} /> |
184 | 189 | <Route path="packages/:id/*" element={<PackageDetailPage />} /> |
| 190 | + <Route path="nexus" element={<NexusPage />} /> |
185 | 191 | </Routes> |
186 | 192 | </div> |
187 | 193 |
|
|
0 commit comments