import SeverityPill from './SeverityPill' import { ATA_CHAPTERS } from '../lib/constants' // Per Frontend Spec: white surface, 1px light grey border, 12px radius, 16px padding. // Top-right: severity pill + confidence %. ATA system name bold under excerpt, // chapter number in muted grey next to it (e.g. "Hydraulic Power — ATA 29"). export default function ReportCard({ report }) { const systemName = report.ata_chapter ? ATA_CHAPTERS[report.ata_chapter] : null return (

{report.excerpt}

{report.score !== null && report.score !== undefined && ( {Math.round(report.score * 100)}% match )}
{systemName && (
{systemName}{' '} — ATA {report.ata_chapter}
)}
) }