hts/apps/blogai/app/[locale]/morphic/layout.tsx

58 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Metadata, Viewport } from 'next'
import { Inter as FontSans } from 'next/font/google'
import { AI } from './action' // 注意,导入的是 { AI },不是 AIProvider
import '../../globals.css'
import { cn } from '@/lib/utils'
import { ThemeProvider } from '@/components/mpv2/theme-provider'
import Header from '@/components/mpv2/header'
import Footer from '@/components/mpv2/footer'
const fontSans = FontSans({
subsets: ['latin'],
variable: '--font-sans'
})
const title = 'Morphic'
const description =
'A fully open-source AI-powered answer engine with a generative UI.'
export const metadata: Metadata = {
metadataBase: new URL('https://morphic.sh'),
title,
description,
openGraph: {
title,
description
},
twitter: {
title,
description,
card: 'summary_large_image',
creator: '@miiura'
}
}
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
minimumScale: 1,
maximumScale: 1
}
export default function RootLayout({
children
}: Readonly<{
children: React.ReactNode
}>) {
return (
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{/* <Header /> */}
<AI>
{children}
</AI>