'use client' /** * Recommendation-Card: zeigt die gerollupten Maßnahmen. * Eine Recommendation bündelt 1..N Findings mit gleicher Maßnahme. */ import React from 'react' import type { Recommendation } from './_agentTypes' import { SEVERITY_COLOR } from './_agentTypes' export function AgentRecommendationCard({ r }: { r: Recommendation }) { const color = SEVERITY_COLOR[r.severity] return (
{r.severity} {r.title} {r.related_finding_ids.length} Finding(s) {' · '} {r.estimated_effort_hours.toFixed(1)}h geschätzt
{r.body && r.body !== r.title && (
{r.body}
)} {r.related_finding_ids.length > 0 && (
Aus diesen Findings abgeleitet
)}
) }