2022-11-09 21:38:05 -05:00
|
|
|
import "@styles/globals.css"
|
|
|
|
import { LayoutWrapper } from "./root-layout-wrapper"
|
2022-11-29 03:43:04 -05:00
|
|
|
import { ServerThemeProvider } from "@wits/next-themes"
|
2022-11-09 01:14:43 -05:00
|
|
|
|
|
|
|
interface RootLayoutProps {
|
|
|
|
children: React.ReactNode
|
|
|
|
}
|
|
|
|
|
2022-11-15 23:50:54 -05:00
|
|
|
export default async function RootLayout({ children }: RootLayoutProps) {
|
2022-11-09 01:14:43 -05:00
|
|
|
return (
|
2022-12-16 14:49:10 -05:00
|
|
|
// <ServerThemeProvider
|
|
|
|
// enableSystem={true}
|
|
|
|
// disableTransitionOnChange
|
|
|
|
// cookieName={"drift-theme"}
|
|
|
|
// attribute="data-theme"
|
|
|
|
// enableColorScheme={true}
|
|
|
|
// >
|
2022-11-29 03:43:04 -05:00
|
|
|
<html lang="en">
|
|
|
|
<head />
|
2022-11-30 01:10:51 -05:00
|
|
|
<body>
|
2022-12-04 17:26:14 -05:00
|
|
|
<LayoutWrapper>{children}</LayoutWrapper>
|
2022-11-10 02:11:36 -05:00
|
|
|
</body>
|
2022-11-29 03:43:04 -05:00
|
|
|
</html>
|
2022-11-09 01:14:43 -05:00
|
|
|
)
|
|
|
|
}
|