import type { Route } from "next"; export function isProjectPage(path: string): boolean { return [ "/Report/Current", "/Report/Quota", "/Report/Tabulation", "/Report/Crosstab", "/Management/Derived", "/Management/Exim", ].includes(path); } /** * Project pages carry no project in the address (legacy KART kept it in client state); the * selected project lives in useSelectedProject. Other paths open the progress page. */ export function projectPagePath(path: string): Route { return (isProjectPage(path) ? path : "/Report/Current") as Route; }