import React, { useState } from 'react'; import { BookOpen, ChevronRight, Loader2, CheckCircle } from 'lucide-react'; import { BlogSection } from '../types'; interface Props { sections: BlogSection[]; activeSection: string; onSectionClick: (id: string) => void; } const Sidebar: React.FC = ({ sections, activeSection, onSectionClick }) => { const [isCollapsed, setIsCollapsed] = useState(false); const handleClick = (id: string) => { onSectionClick(id); const element = document.getElementById(`section-${id}`); if (element) { element.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }; return ( ); }; export default Sidebar;