Files
documentation/node_modules/@docusaurus/theme-classic/lib/theme/TOCInline/index.js
2024-03-22 03:47:51 +05:30

23 lines
649 B
JavaScript

/**
* 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 TOCItems from '@theme/TOCItems';
import styles from './styles.module.css';
export default function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
return (
<div className={styles.tableOfContentsInline}>
<TOCItems
toc={toc}
minHeadingLevel={minHeadingLevel}
maxHeadingLevel={maxHeadingLevel}
className="table-of-contents"
linkClassName={null}
/>
</div>
);
}