diff --git a/src/components/layout/SiteHeader.tsx b/src/components/layout/SiteHeader.tsx index 7d197a1..856bae3 100644 --- a/src/components/layout/SiteHeader.tsx +++ b/src/components/layout/SiteHeader.tsx @@ -2,7 +2,6 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -import { useCart } from "@/context/CartContext"; import ThemeToggle from "@/components/shared/ThemeToggle"; const BRAND_NAMES: Record = { @@ -11,44 +10,97 @@ const BRAND_NAMES: Record = { }; export default function SiteHeader() { - const { cart } = useCart(); const pathname = usePathname(); const showBrandName = pathname?.startsWith("/tuxedo") || pathname?.startsWith("/indian-river-direct"); const brandKey = pathname?.split("/")[1]; const brandName = brandKey ? BRAND_NAMES[brandKey] : null; + const isAdminRoute = pathname?.startsWith("/admin"); + const isStorefrontRoute = pathname?.startsWith("/tuxedo") || pathname?.startsWith("/indian-river-direct") || pathname?.startsWith("/cart") || pathname?.startsWith("/wholesale"); + return ( -
-
- {showBrandName && brandName ? ( - - {brandName} - - ) : ( - - Route Commerce - - )} +
+ {/* Google Fonts */} + -