'use client' import React from 'react' import type { AnalysisResult } from '../_hooks/useAgentAnalysis' const DOC_TYPE_LABELS: Record = { privacy_policy: 'DSE', cookie_banner: 'Cookie', terms_of_service: 'AGB', imprint: 'Impressum', dpa: 'AVV', other: 'Sonstig', } const RISK_DOT: Record = { low: 'bg-green-500', medium: 'bg-yellow-500', high: 'bg-orange-500', critical: 'bg-red-500', } interface Props { history: AnalysisResult[] onSelect: (result: AnalysisResult) => void } export function AnalysisHistory({ history, onSelect }: Props) { if (history.length === 0) return null return (

Letzte Analysen

{history.map((item, i) => ( ))}
) }