36 lines
873 B
TypeScript
36 lines
873 B
TypeScript
import { Metadata } from "next";
|
|
import { Toaster } from "sonner";
|
|
|
|
import { Navbar } from "@/components/custom/navbar";
|
|
import { ThemeProvider } from "@/components/custom/theme-provider";
|
|
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL("https://chat.vercel.ai"),
|
|
title: "Next.js Chatbot Template",
|
|
description: "Next.js chatbot template using the AI SDK.",
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className="antialiased">
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<Toaster position="top-center" />
|
|
<Navbar />
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|