2024-10-11 18:00:22 +05:30
|
|
|
import { Metadata } from "next";
|
|
|
|
|
import { Toaster } from "sonner";
|
2023-06-15 16:07:03 +04:00
|
|
|
|
2024-10-11 18:00:22 +05:30
|
|
|
import { Navbar } from "@/components/custom/navbar";
|
|
|
|
|
import { ThemeProvider } from "@/components/custom/theme-provider";
|
2023-05-19 12:33:56 -04:00
|
|
|
|
2024-10-11 18:00:22 +05:30
|
|
|
import "./globals.css";
|
2023-11-26 12:32:01 -06:00
|
|
|
|
2024-10-11 18:00:22 +05:30
|
|
|
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.",
|
|
|
|
|
};
|
2023-05-19 12:33:56 -04:00
|
|
|
|
2024-10-11 18:00:22 +05:30
|
|
|
export default async function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}>) {
|
2023-05-19 12:33:56 -04:00
|
|
|
return (
|
2024-10-11 18:00:22 +05:30
|
|
|
<html lang="en">
|
|
|
|
|
<body className="antialiased">
|
|
|
|
|
<ThemeProvider
|
2023-12-04 12:42:53 -05:00
|
|
|
attribute="class"
|
|
|
|
|
defaultTheme="system"
|
|
|
|
|
enableSystem
|
|
|
|
|
disableTransitionOnChange
|
|
|
|
|
>
|
2024-10-11 18:00:22 +05:30
|
|
|
<Toaster position="top-center" />
|
|
|
|
|
<Navbar />
|
|
|
|
|
{children}
|
|
|
|
|
</ThemeProvider>
|
2023-06-16 11:49:14 -04:00
|
|
|
</body>
|
|
|
|
|
</html>
|
2024-10-11 18:00:22 +05:30
|
|
|
);
|
2023-05-19 12:33:56 -04:00
|
|
|
}
|