"use client"; import { usePathname } from "next/navigation"; import { Nav } from "@/components/Nav"; import { MarketingHeader } from "@/components/marketing/MarketingHeader"; import { MarketingFooter } from "@/components/marketing/MarketingFooter"; // Public marketing surface — exact paths, not prefixes, so e.g. /features/x // (if it ever exists) doesn't accidentally get pulled into marketing chrome. const MARKETING_PATHS = new Set(["/", "/features", "/pricing", "/faq"]); /** * Picks page chrome by route: the public marketing pages get a full-bleed * layout with their own header/footer, everything else (the authenticated * app, including /login and /settings) keeps the existing app Nav + padded * main container. */ export function ChromeSwitcher({ children }: { children: React.ReactNode }) { const pathname = usePathname(); if (MARKETING_PATHS.has(pathname)) { return ( <> {children} ); } return ( <>