import { Button, Container } from '@ifrc-go/ui'; import styles from '../../pages/UploadPage/UploadPage.module.css'; interface RatingSectionProps { isPerformanceConfirmed: boolean; scores: { accuracy: number; context: number; usability: number; }; onScoreChange: (key: 'accuracy' | 'context' | 'usability', value: number) => void; onConfirmRatings: () => void; onEditRatings: () => void; } export default function RatingSection({ isPerformanceConfirmed, scores, onScoreChange, onConfirmRatings, }: RatingSectionProps) { // Don't render anything if ratings are confirmed if (isPerformanceConfirmed) { return null; } return (

How well did the AI perform on the task?

{(['accuracy', 'context', 'usability'] as const).map((k) => (
onScoreChange(k, Number(e.target.value))} className={styles.ratingInput} /> {scores[k]}
))}
); }