fixed nav, added sanity and guides pages
CI / test (push) Successful in 5s

This commit is contained in:
2026-03-12 07:10:37 -04:00
parent f8265063d5
commit fb52521495
14 changed files with 13284 additions and 179 deletions
+19
View File
@@ -0,0 +1,19 @@
"use client";
import { usePathname } from "next/navigation";
import { BuilderNav } from "./BuilderNav";
/**
* Wraps BuilderNav with pathname-aware visibility.
* The catalog bar is irrelevant on guide pages — hide it there.
*/
export function BuilderNavConditional() {
const pathname = usePathname();
// Hide catalog bar on guide pages — part categories don't apply when reading an article
if (pathname.startsWith("/guides")) return null;
return <BuilderNav />;
}
export default BuilderNavConditional;