import { useMagzineGlobal } from '..' import Catalog from './Catalog' import CatalogFloatButton from './CatalogFloatButton' /** * 悬浮抽屉目录 * @param toc * @param post * @returns {JSX.Element} * @constructor */ const CatalogFloat = ({ post, cRef }) => { const { tocVisible, changeTocVisible } = useMagzineGlobal() const switchVisible = () => { changeTocVisible(!tocVisible) } return (