28 lines
602 B
TypeScript
28 lines
602 B
TypeScript
import "@styles/globals.css"
|
|
import { LayoutWrapper } from "./root-layout-wrapper"
|
|
import { ServerThemeProvider } from "@wits/next-themes"
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
export default async function RootLayout({ children }: RootLayoutProps) {
|
|
return (
|
|
<ServerThemeProvider
|
|
enableSystem={true}
|
|
disableTransitionOnChange
|
|
cookieName={"drift-theme"}
|
|
attribute="data-theme"
|
|
enableColorScheme={true}
|
|
>
|
|
<html lang="en">
|
|
<head />
|
|
<body>
|
|
<LayoutWrapper>
|
|
{children}
|
|
</LayoutWrapper>
|
|
</body>
|
|
</html>
|
|
</ServerThemeProvider>
|
|
)
|
|
}
|