/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import clsx from 'clsx'; import { PageMetadata, HtmlClassNameProvider, ThemeClassNames, } from '@docusaurus/theme-common'; import Layout from '@theme/Layout'; import MDXContent from '@theme/MDXContent'; import TOC from '@theme/TOC'; import Unlisted from '@theme/Unlisted'; import styles from './styles.module.css'; export default function MDXPage(props) { const {content: MDXPageContent} = props; const { metadata: {title, description, frontMatter, unlisted}, assets, } = MDXPageContent; const { keywords, wrapperClassName, hide_table_of_contents: hideTableOfContents, } = frontMatter; const image = assets.image ?? frontMatter.image; return (
{unlisted && }
{!hideTableOfContents && MDXPageContent.toc.length > 0 && (
)}
); }