mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 08:56:46 -04:00
e20038e2f2
Begin the process of moving our MDX files into their own content directory. Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.) Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
26 lines
581 B
TypeScript
26 lines
581 B
TypeScript
import { FC } from 'react'
|
|
import { FooterHelpCalloutType } from '~/components/FooterHelpCallout'
|
|
import GuideLayout from './guides'
|
|
|
|
interface Props {
|
|
meta: {
|
|
title: string
|
|
description?: string
|
|
hide_table_of_contents?: boolean
|
|
video?: string
|
|
footerHelpType?: FooterHelpCalloutType
|
|
}
|
|
children: any
|
|
toc?: any
|
|
// [Charis] Deprecate meta.hide_table_of_contents once the content migration is over
|
|
hideToc?: boolean
|
|
currentPage?: string
|
|
editLink?: string
|
|
}
|
|
|
|
const Layout: FC<Props> = (props) => {
|
|
return GuideLayout(props)
|
|
}
|
|
|
|
export default Layout
|