import dynamic from "next/dynamic"; import type { ReactNode } from "react"; import { CloudsField } from "@/components/clouds-field"; import MotionPageWrapper from "@/components/motion-page-wrapper"; import { Navigation } from "@/components/navigation"; import { SiteFooter } from "@/components/site-footer"; import { SiteHeader } from "@/components/site-header"; import { TopHeader } from "@/components/top-header"; import { auth } from "@/lib/auth"; const RadioPlayerGate = dynamic( () => import("@/components/public/radio-player-gate"), { loading: () => (
), }, ); /** * Public site chrome. Route group `(site)` keeps this off `/admin` and `/client`, * so housekeeping is never constrained by the public max-w-7xl grid. */ export default async function SiteLayout({ children, }: { children: ReactNode; }) { const session = await auth(); return ( <> {session?.user?.id ? ( <>
) : null}
{children}
); }