mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
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";
|
|
import { Banner } from 'fumadocs-ui/components/banner';
|
|
|
|
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}>
|
|
<Banner className="bg-black text-white">
|
|
Looking for the chatbot template? It's now{" "}<a className="underline ml-1" target="_blank" href="https://chatbot.ai-sdk.dev/">here</a>.
|
|
</Banner>
|
|
<Navbar />
|
|
{children}
|
|
<Footer />
|
|
</GeistdocsProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|