mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
'use client'
|
|
|
|
import 'katex/dist/katex.min.css'
|
|
|
|
import { type FC } from 'react'
|
|
|
|
import { FooterHelpCalloutType } from '~/components/FooterHelpCallout'
|
|
import { type MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu'
|
|
import { LayoutMainContent } from '~/layouts/DefaultLayout'
|
|
import { MainSkeleton } from '~/layouts/MainSkeleton'
|
|
|
|
interface Props {
|
|
meta?: {
|
|
title: string
|
|
description?: string // used in meta tags
|
|
hide_table_of_contents?: boolean
|
|
breadcrumb?: string
|
|
subtitle?: string // used on the page under the H1
|
|
footerHelpType?: FooterHelpCalloutType
|
|
video?: string
|
|
tocVideo?: string
|
|
canonical?: string
|
|
}
|
|
editLink?: string
|
|
children: any
|
|
toc?: any
|
|
currentPage?: string
|
|
hideToc?: boolean
|
|
menuId: MenuId
|
|
}
|
|
|
|
const Layout: FC<Props> = (props) => {
|
|
const menuId = props.menuId
|
|
|
|
return (
|
|
<>
|
|
<MainSkeleton menuId={menuId}>
|
|
<LayoutMainContent className="pb-0">{props.children}</LayoutMainContent>
|
|
</MainSkeleton>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Layout
|