Files
nextjs-chat-gpt/app/layout.tsx
T

50 lines
1.2 KiB
TypeScript

import React from 'react';
import type { Metadata } from 'next';
import { ThemeProvider } from '@/components/theme-provider';
import './globals.css';
const title = 'ChatGPT Agent | AI Chat & Research Assistant';
const description =
'Ask questions, explore ideas, and get clear AI answers with streaming responses, optional web research, file attachments, and saved conversations.';
export const metadata: Metadata = {
applicationName: 'ChatGPT Agent',
title: {
default: title,
template: '%s | ChatGPT Agent',
},
description,
openGraph: {
type: 'website',
siteName: 'ChatGPT Agent',
title,
description,
},
twitter: {
card: 'summary',
title,
description,
},
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning>
<body className="m-0 p-0 font-body">
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<div className="h-screen overflow-hidden bg-muted">{children}</div>
</ThemeProvider>
</body>
</html>
);
}