78 lines
1.7 KiB
TypeScript
78 lines
1.7 KiB
TypeScript
import type { Metadata, Viewport } from 'next'
|
|
import { Inter as FontSans } from 'next/font/google'
|
|
import { AI } from './action'
|
|
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 (
|
|
// <html lang="en" suppressHydrationWarning>
|
|
// <body className={cn('font-sans antialiased', fontSans.variable)}>
|
|
// <ThemeProvider
|
|
// attribute="class"
|
|
// defaultTheme="system"
|
|
// enableSystem
|
|
// disableTransitionOnChange
|
|
// >
|
|
// <Header />
|
|
// <AI>{children}</AI>
|
|
// <Footer />
|
|
// </ThemeProvider>
|
|
// </body>
|
|
// </html>
|
|
// )
|
|
|
|
return (
|
|
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{/* <Header /> */}
|
|
<AI>{children}</AI>
|
|
{/* <Footer /> */}
|
|
</ThemeProvider>
|
|
)
|
|
}
|