import InfoCard from '@/components/InfoCard' import MenuButtonGroup from '@/components/MenuButtonGroup' import SearchInput from '@/components/SearchInput' import Toc from '@/components/Toc' import { useGlobal } from '@/lib/global' import React from 'react' import Analytics from './Analytics' /** * 侧边平铺 * @param tags * @param currentTag * @param post * @param posts * @param categories * @param currentCategory * @param currentSearch * @returns {JSX.Element} * @constructor */ const SideAreaLeft = ({ title, tags, currentTag, post, posts, categories, currentCategory, currentSearch, targetRef }) => { const { locale } = useGlobal() const showToc = post && post.toc && post.toc.length > 1 const postCount = posts?.length || 0 return <>
{/* 菜单 */}
{/* 统计 */}
{showToc && (
{locale.COMMON.TABLE_OF_CONTENTS}
)} } export default SideAreaLeft