'use client' import type { TocItem } from './hooks/use-doc-toc' import { useTranslation } from 'react-i18next' import { cn } from '@/utils/classnames' type TocPanelProps = { toc: TocItem[] activeSection: string isTocExpanded: boolean onToggle: (expanded: boolean) => void onItemClick: (e: React.MouseEvent, item: TocItem) => void } const TocPanel = ({ toc, activeSection, isTocExpanded, onToggle, onItemClick }: TocPanelProps) => { const { t } = useTranslation() if (!isTocExpanded) { return ( ) } return ( ) } export default TocPanel