// V1 eval report cover — ported from EvalReportCover.tsx import { Page, View, Text, Image } from '@react-pdf/renderer'; import { styles, colors, logoPath } from '../styles.js'; interface EvalReportCoverProps { customerName: string; reportDate: string; highlights: { totalQuestions: number; totalRules: number; overallScore: number; highSeverityScore: number; mediumSeverityScore: number; highCount: number; mediumCount: number; }; } export function EvalReportCover({ customerName, reportDate, highlights }: EvalReportCoverProps) { return ( {/* Logo */} {/* Title */} Evaluation Report {customerName} {reportDate} {/* Key Highlights */} Key Highlights {'\u2022'} {highlights.totalQuestions} questions evaluated against {highlights.totalRules} rules {'\u2022'} Overall weighted score: {Math.round(highlights.overallScore * 100)}% {'\u2022'} High severity compliance ({highlights.highCount} rules): {Math.round(highlights.highSeverityScore * 100)}% {'\u2022'} Medium severity compliance ({highlights.mediumCount} rules): {Math.round(highlights.mediumSeverityScore * 100)}% {/* Footer */} Powered by Indemn Evals Page 1 ); }