import React from 'react' import { TestItem } from '@/store/review/useTestQueueStore' import { TestStatusIndicator, TestStats, TestProgressBar, TestStatusList } from './TestStatusIndicator' interface TaskListModalProps { isOpen: boolean onClose: () => void testItems: TestItem[] completedTests: number totalTests: number } export const TaskListModal: React.FC = ({ isOpen, onClose, testItems, completedTests, totalTests }) => { if (!isOpen) return null // 使用新的統計邏輯 const stats = { total: totalTests, completed: testItems.filter(item => item.isCompleted).length, skipped: testItems.filter(item => item.isSkipped && !item.isCompleted).length, incorrect: testItems.filter(item => item.isIncorrect && !item.isCompleted).length, remaining: testItems.filter(item => !item.isCompleted).length } return (
{/* Header */}

📚 學習任務清單

{/* Content */}
{/* 智能進度統計 */}

學習進度

{/* 智能測驗狀態列表 */}
{testItems.length > 0 ? ( ) : (
📚

還沒有生成任務清單

)}
{/* 隊列優先級說明 */} {stats.total > 0 && (

智能隊列說明

未完成測驗:優先處理,保持學習動機
答錯測驗:移到隊列後方重複練習
跳過測驗:暫時跳過,稍後自動回歸
已完成測驗:永久從當日清單移除
)}
{/* Footer */}
) }