"use client"; import { Logo } from "@/components/logo"; import { Navigation } from "@/components/navigation"; import { SideNavigation } from "@/components/side-navigation"; import { motion } from "framer-motion"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Footer } from "./footer"; import { Header } from "./header"; import { type Section, SectionProvider } from "./section-provider"; export function Layout({ children, allSections, }: { children: React.ReactNode; allSections: Record; }) { const pathname = usePathname(); const fullWidthRoutes = ["/api-docs"]; const isFullWidth = fullWidthRoutes.includes(pathname || ""); // If it's a full-width route, return just the children if (isFullWidth) { return children; } return (
{children}
); }