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

22 lines
464 B
TypeScript
Raw Normal View History

2025-04-03 08:53:20 +02:00
import type { JSX } from 'react'
2024-07-22 07:59:43 +02:00
import { MDXProvider } from '@mdx-js/react'
import { TuonoScripts } from 'tuono'
2025-04-03 08:53:20 +02:00
import type { TuonoLayoutProps } from 'tuono'
2024-07-22 07:59:43 +02:00
import '../styles/global.css'
2025-04-03 08:53:20 +02:00
export default function RootLayout({
children,
}: TuonoLayoutProps): 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
)
}