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

25 lines
661 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 { Head } from 'tuono'
2024-07-22 07:59:43 +02:00
interface RootRouteProps {
children: ReactNode
}
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
return (
<>
<Head>
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚡</text></svg>"
/>
<title>Tuono - With MDX</title>
</Head>
<main className="main">
<MDXProvider components={{}}>{children}</MDXProvider>
</main>
</>
2024-07-22 07:59:43 +02:00
)
}