interface SimpleProgressProps { current: number total: number score: { correct: number; total: number } } export function SimpleProgress({ current, total, score }: SimpleProgressProps) { const progress = (current - 1) / total * 100 const accuracy = score.total > 0 ? Math.round((score.correct / score.total) * 100) : 0 return (
學習進度
{current}/{total} {score.total > 0 && ( 準確率 {accuracy}% )}
{/* 進度條 */}
{/* 詳細統計 */} {score.total > 0 && (
答對 {score.correct}
答錯 {score.total - score.correct}
)}
) }