import "@styles/globals.css" import { ServerThemeProvider } from "next-themes" import { LayoutWrapper } from "./root-layout-wrapper" import styles from '@styles/Home.module.css'; import { cookies } from "next/headers"; interface RootLayoutProps { children: React.ReactNode } export default async function RootLayout({ children }: RootLayoutProps) { // TODO: this opts out of SSG const cookiesList = cookies(); const hasNextAuth = cookiesList.get("next-auth.session-token") !== undefined; return ( {children} ) }