/** * 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 {useCollapsible, Collapsible} from '@docusaurus/theme-common'; import TOCItems from '@theme/TOCItems'; import CollapseButton from '@theme/TOCCollapsible/CollapseButton'; import styles from './styles.module.css'; export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }) { const {collapsed, toggleCollapsed} = useCollapsible({ initialState: true, }); return (