chatbot-template/app/layout.tsx

50 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-05-19 14:29:13 -04:00
import "./globals.css";
2023-05-19 12:33:56 -04:00
import { Metadata } from "next";
import { ThemeProvider } from "@/components/theme-provider";
import { fontMono, fontSans } from "@/lib/fonts";
import { cn } from "@/lib/utils";
export const metadata: Metadata = {
title: {
2023-05-19 14:25:15 -04:00
default: "Next.js Chatbot",
template: `%s - Next.js Chatbot`,
2023-05-19 12:33:56 -04:00
},
2023-05-19 14:25:15 -04:00
description: "An AI-powered chatbot built with Next.js and Vercel.",
2023-05-19 12:33:56 -04:00
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
],
icons: {
icon: "/favicon.ico",
shortcut: "/favicon-16x16.png",
apple: "/apple-touch-icon.png",
},
};
interface RootLayoutProps {
children: React.ReactNode;
}
export default function RootLayout({ children }: RootLayoutProps) {
return (
<>
<html lang="en" suppressHydrationWarning>
<head />
<body
className={cn(
"font-sans antialiased",
fontSans.variable,
fontMono.variable
)}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
{children}
{/* <TailwindIndicator /> */}
</ThemeProvider>
</body>
</html>
</>
);
}