Files
2024-07-03 10:25:06 -04:00

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