1
0
Fork 0

wip(fs.dev): More work on new dev site

This commit is contained in:
Joost De Cock 2021-12-25 13:43:41 +01:00
parent 096c2f5f6a
commit 519de5e202
16 changed files with 230 additions and 61 deletions

View file

@ -12,6 +12,9 @@ import * as runtime from 'react/jsx-runtime.js'
// Components that are available in all MDX
import customComponents from 'shared/components/mdx'
// Previous-Next navigation
import PrevNext from '../mdx/prev-next'
const MdxWrapper = ({mdx, app, components={}}) => {
const [mdxModule, setMdxModule] = useState()
@ -38,6 +41,7 @@ const MdxWrapper = ({mdx, app, components={}}) => {
return (
<div className="text-primary mdx max-w-prose text-base-content max-w-prose text-lg lg:text-xl">
{mdxModule && <MdxContent components={allComponents}/>}
<PrevNext app={app} />
</div>
)
}