Files
supabase/apps/docs/components/reference/RefEducationSection.tsx
Jonathan Summers-Muir 63a129bc07 try and fix JS
2022-12-09 00:09:32 +08:00

27 lines
717 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) {
console.log(props.item.id)
return <div></div>
}
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