Refine use cases rule examples

This commit is contained in:
adilallo
2026-05-19 22:16:08 -06:00
parent 7c46cbd87b
commit 2f2b5d0dc2
65 changed files with 3129 additions and 252 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* Routes that render product chrome only (`CreateFlowTopNav`), not marketing `Top`.
* Keep in sync with `ConditionalNavigationClient`.
*/
export function isChromelessNavigationPath(
pathname: string | null | undefined,
): boolean {
if (!pathname) {
return false;
}
if (pathname.startsWith("/create") || pathname === "/login") {
return true;
}
return /^\/use-cases\/[^/]+\/rule\/?$/.test(pathname);
}