-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathlayout.tsx
More file actions
29 lines (26 loc) · 818 Bytes
/
layout.tsx
File metadata and controls
29 lines (26 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import "../global.css";
import { Footer } from "@/components/geistdocs/footer";
import { Navbar } from "@/components/geistdocs/navbar";
import { GeistdocsProvider } from "@/components/geistdocs/provider";
import { basePath } from "@/geistdocs";
import { mono, sans } from "@/lib/geistdocs/fonts";
import { cn } from "@/lib/utils";
const Layout = async ({ children, params }: LayoutProps<"/[lang]">) => {
const { lang } = await params;
return (
<html
className={cn(sans.variable, mono.variable, "scroll-smooth antialiased")}
lang={lang}
suppressHydrationWarning
>
<body>
<GeistdocsProvider basePath={basePath} lang={lang}>
<Navbar />
{children}
<Footer />
</GeistdocsProvider>
</body>
</html>
);
};
export default Layout;