mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
901 B
TypeScript
37 lines
901 B
TypeScript
import "@styles/globals.css"
|
|
import { Providers } from "./providers"
|
|
import Layout from "@components/layout"
|
|
import { Toasts } from "@components/toasts"
|
|
import Header from "@components/header"
|
|
import { Inter } from "next/font/google"
|
|
import { getMetadata } from "src/app/lib/metadata"
|
|
import dynamic from "next/dynamic"
|
|
|
|
const inter = Inter({ subsets: ["latin"], variable: "--inter-font" })
|
|
|
|
const CmdK = dynamic(() => import("@components/cmdk"), { ssr: false })
|
|
|
|
export default async function RootLayout({
|
|
children
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
// suppressHydrationWarning is required because of next-themes
|
|
<html lang="en" className={inter.variable} suppressHydrationWarning>
|
|
<body>
|
|
<Toasts />
|
|
<Providers>
|
|
<Layout>
|
|
<CmdK />
|
|
<Header />
|
|
{children}
|
|
</Layout>
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
export const metadata = getMetadata()
|