interface SimpleResultsProps { score: { correct: number; total: number } totalCards: number onRestart: () => void } export function QuizResult({ score, totalCards, onRestart }: SimpleResultsProps) { const accuracy = Math.round((score.correct / score.total) * 100) const getPerformanceMessage = () => { if (accuracy >= 80) return { text: '太棒了!', emoji: '🎉', color: 'text-green-600' } if (accuracy >= 60) return { text: '不錯!', emoji: '👍', color: 'text-blue-600' } if (accuracy >= 40) return { text: '繼續努力!', emoji: '💪', color: 'text-yellow-600' } return { text: '加油!', emoji: '🌟', color: 'text-orange-600' } } const performance = getPerformanceMessage() return (
) }