export type SidebarSection = | 'new' | 'history' | 'saved' | 'analytics' | 'documentation' | 'help' | 'settings'; interface SidebarProps { activeSection: SidebarSection; historyCount: number; savedCount: number; onReset: () => void; onSelectSection: (section: SidebarSection) => void; } export function Sidebar({ activeSection, historyCount, savedCount, onReset, onSelectSection, }: SidebarProps) { const navButtonClass = (section: SidebarSection) => `w-full flex items-center gap-3 px-4 py-3 rounded-lg text-left ${ activeSection === section ? 'bg-gray-100 text-gray-900' : 'text-gray-600 hover:bg-gray-100' }`; return ( ); }