'use client' import { LogRow, type DashboardData } from '../widget-primitives' export function EventStreamWidget({ data }: { data: DashboardData }) { const { isLocal, mergedRecentLogs, recentErrorLogs, isSessionsLoading } = data return (

{isLocal ? 'Local Event Stream' : 'Incident Stream'}

{isLocal ? mergedRecentLogs.length : `${recentErrorLogs} errors`}
{mergedRecentLogs.length === 0 ? (

{isSessionsLoading ? 'Loading logs...' : 'No logs yet'}

{isLocal ? 'Local Claude/Codex events stream here.' : 'Gateway incidents and warnings stream here.'}

) : ( mergedRecentLogs.map((log) => ) )}
) }