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.
Drift/src/app/(drift)/layout.tsx

38 lines
940 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 })
import CmdK from "@components/cmdk"
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()