import Head from 'next/head'; import Nav from './Nav'; import Footer from './Footer'; import MetaInfo from './MetaInfo'; import type {HeadingInfo} from '@sup39/rehype-mdx-export-headings'; export type MDXProps = { children: JSX.Element data: { pathname: string, }, meta: Partial<{ title: string description: string h1: string [key: string]: any }> headings: HeadingInfo[] }; export default function MDXRoot({children, data: {pathname}, meta={}, headings}: MDXProps) { const {title, description} = meta; const h1 = meta.h1 ?? title; return <> {title} {description && }