import { useGitBookGlobal } from '@/themes/gitbook' import Catalog from './Catalog' /** * 悬浮抽屉目录 * @param toc * @param post * @returns {JSX.Element} * @constructor */ const TocDrawer = ({ post, cRef }) => { const { tocVisible, changeTocVisible } = useGitBookGlobal() const switchVisible = () => { changeTocVisible(!tocVisible) } return <>
{/* 侧边菜单 */}
{post && <>
}
{/* 背景蒙版 */}
} export default TocDrawer