Files
tuono/examples/with-mdx/src/routes/__layout.tsx
T

21 lines
447 B
TypeScript
Raw Normal View History

import type { ReactNode, JSX } from 'react'
2024-07-22 07:59:43 +02:00
import { MDXProvider } from '@mdx-js/react'
import { TuonoScripts } from 'tuono'
2024-07-22 07:59:43 +02:00
interface RootLayoutProps {
2024-07-22 07:59:43 +02:00
children: ReactNode
}
export default function RootLayout({ children }: RootLayoutProps): JSX.Element {
2024-07-22 07:59:43 +02:00
return (
2025-01-03 11:00:44 +01:00
<html>
<body>
<main>
<MDXProvider components={{}}>{children}</MDXProvider>
</main>
<TuonoScripts />
2025-01-03 11:00:44 +01:00
</body>
</html>
2024-07-22 07:59:43 +02:00
)
}