| // frontend/src/utils.jsx | |
| export function createPageUrl(pageName) { | |
| if (!pageName) return "/"; | |
| const lower = pageName.toLowerCase(); | |
| if (lower === "dashboard") return "/"; | |
| if (lower === "api keys") return "/api-keys"; | |
| return `/${lower.replace(/\s+/g, "-")}`; | |
| } | |