'use client' /** * AgentResultTab — Inhalt eines Themen-Ergebnis-Tabs im Compliance-Check. * Themen-Header (Label + Konfidenz + Severity-Ampel) + der geteilte * AgentResultView. Standardisierter Rahmen, den jeder Themen-Agent * (Impressum, später Cookie/Vendor/Savings) füllt. */ import React from 'react' import type { SlotOutput } from './_agentTypes' import { isOutputSkipped } from './_agentTypes' import { AgentResultView } from './AgentResultView' export function AgentResultTab({ topicLabel, output, }: { topicLabel: string output: SlotOutput }) { const wasSkipped = isOutputSkipped(output) const allGreen = !wasSkipped && output.findings.length === 0 const high = output.findings.filter(f => f.severity === 'HIGH').length const medium = output.findings.filter(f => f.severity === 'MEDIUM').length const low = output.findings.filter(f => f.severity === 'LOW').length return (