Files
xsai/docs/app/layout.tsx
T
2025-03-03 18:16:01 +08:00

31 lines
946 B
TypeScript

import 'fumadocs-twoslash/twoslash.css'
import './global.css'
import type { PropsWithChildren } from 'react'
import Link from 'fumadocs-core/link'
import { Banner } from 'fumadocs-ui/components/banner'
import { RootProvider } from 'fumadocs-ui/provider'
import { Inter } from 'next/font/google'
const inter = Inter({
subsets: ['latin'],
})
export default ({ children }: PropsWithChildren) => (
<html className={inter.className} lang="en" suppressHydrationWarning>
<head>
<link href="https://github.com/moeru-ai.png" rel="icon" type="image/png" />
</head>
<body className="flex flex-col min-h-screen">
<RootProvider search={{ options: { type: 'static' } }}>
<Banner id="introducing-xsai" variant="rainbow">
<Link href="https://blog.moeru.ai/introducing-xsai/">xsAI v0.1 is now available! Read Announcement</Link>
</Banner>
{children}
</RootProvider>
</body>
</html>
)