Duplicated from Seth0330/EZOFISAIOCR
8e8c6a4 d7fe8fb 8e8c6a4
1
2
3
4
5
6
7
8
9
10
// 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, "-")}`; }