import "~/styles/globals.css"; import { GeistSans } from "geist/font/sans"; import type { Metadata } from "next"; import { SessionProvider } from "next-auth/react"; import { auth } from "~/auth"; import { Top_Bar } from "~/app/_components/ui/top_bar"; import { Dock } from "~/app/_components/ui/dock"; export const metadata: Metadata = { title: "Create T3 App", description: "Generated by create-t3-app", icons: [{ rel: "icon", url: "/favicon.ico" }], }; export default async function RootLayout({ children, }: { children: React.ReactNode; }) { const session = await auth(); if (!session) { return ( {children} ); } else { return ( {children} < Dock /> ); } }