File size: 1,278 Bytes
f2c621a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
import { Metadata } from 'next'
import { Toaster } from 'react-hot-toast'
import { TailwindIndicator } from '@/components/tailwind-indicator'
import { Providers } from '@/components/providers'
import { Header } from '@/components/header'
import '@/app/globals.scss'
export const metadata: Metadata = {
title: {
default: 'Bing AI Chatbot',
template: `%s - Bing AI Chatbot`
},
description: 'Bing AI Chatbot Web App.',
themeColor: [
{ media: '(prefers-color-scheme: light)', color: 'white' },
{ media: '(prefers-color-scheme: dark)', color: 'dark' }
],
icons: {
icon: '/favicon.ico',
shortcut: '../assets/images/logo.svg',
apple: '../assets/images/logo.svg'
}
}
interface RootLayoutProps {
children: React.ReactNode
}
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body>
<Toaster />
<Providers attribute="class" defaultTheme="system" enableSystem>
<div className="flex flex-col min-h-screen">
{/* @ts-ignore */}
<Header />
<main className="flex flex-col flex-1">{children}</main>
</div>
<TailwindIndicator />
</Providers>
</body>
</html>
)
}
|