mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
16 lines
622 B
TypeScript
16 lines
622 B
TypeScript
// Single source of truth for Lighthouse routes: server actions revalidate
|
|
// these exact paths, so navigation hrefs and revalidatePath must not diverge.
|
|
export const LIGHTHOUSE_ROUTE = {
|
|
CHAT: "/lighthouse",
|
|
SETTINGS: "/lighthouse/settings",
|
|
} as const;
|
|
|
|
export type LighthouseRoute =
|
|
(typeof LIGHTHOUSE_ROUTE)[keyof typeof LIGHTHOUSE_ROUTE];
|
|
|
|
// Only the full-page chat owns the Lighthouse chat. Settings must coexist
|
|
// with the side panel so users can configure it without losing the panel.
|
|
export function isLighthouseChatRoute(pathname: string | null): boolean {
|
|
return pathname === LIGHTHOUSE_ROUTE.CHAT;
|
|
}
|