Files
supabase/apps/docs/components/reference/RefEducationSection.tsx
Jonathan Summers-Muir c475dcad06 make things into components
2022-12-08 20:47:32 +08:00

24 lines
670 B
TypeScript

import RefSubLayout from '~/layouts/ref/RefSubLayout'
import { MDXRemote } from 'next-mdx-remote'
import components from '~/components'
const RefEducationSection = (props) => {
// gracefully reject pages we can't render
if (!props.markdownContent) return <></>
return (
<RefSubLayout.EducationSection
key={props.item.id}
title={props.item.title}
hideTitle={props.markdownContent.meta.hideTitle}
id={props.item.id}
slug={props.item.id}
scrollSpyHeader={true}
>
<MDXRemote {...props.markdownContent.content} components={components} />
</RefSubLayout.EducationSection>
)
}
export default RefEducationSection