import { useState } from 'react' import { QueryTrendChart } from './QueryTrendChart' import { TopicsBarChart } from './TopicsBarChart' import { SuccessRateGauge } from './SuccessRateGauge' import { KnowledgeHealthDashboard } from './KnowledgeHealthDashboard' import { DependencyTracker } from './DependencyTracker' import { EscalationTable } from './EscalationTable' import { AnalyticsExport } from './AnalyticsExport' type Tab = 'overview' | 'health' | 'dependencies' | 'escalations' | 'export' const TABS: { id: Tab; label: string }[] = [ { id: 'overview', label: 'Overview' }, { id: 'health', label: 'Knowledge Health' }, { id: 'dependencies', label: 'Dependencies' }, { id: 'escalations', label: 'Escalations' }, { id: 'export', label: 'Export' }, ] export function AnalyticsDashboard() { const [tab, setTab] = useState('overview') return (

Analytics

{/* Tab bar */}
{TABS.map((t) => ( ))}
{tab === 'overview' && (
)} {tab === 'health' && } {tab === 'dependencies' && } {tab === 'escalations' && } {tab === 'export' && }
) }