+ {deckPicker}
+
+
{deckLabel} 완료
+
+
+ {liveMessage || `${score} / ${total} 정답`}
+
+ {storedProgress && (
+
+ 누적 — seen {storedProgress.seen}, correct {storedProgress.correct}
+
+ )}
+
+
+
+
+ );
+ }
+
+ if (view === "loading" || view === "empty") {
+ return (
+
+
{current.prompt}
+
+ {current.type === "mcq" && mcq && (
+
+ {choices.map((choice, choiceIndex) => {
+ const selected = picked === choiceIndex;
+ const showResult = revealed;
+ const isCorrect = choiceIndex === mcq.shuffledAnswerIndex;
+
+ return (
+ -
+
+
+ );
+ })}
+
+ )}
+
+ {current.type === "short" && (
+
patchSnap({ shortValue: (event.target as HTMLInputElement).value })}
+ />
+ )}
+
+ {revealed && (
+ <>
+
{current.explanation}
+
+ 출처 보기
+
+ >
+ )}
+
+
+ {!revealed && (
+
+ )}
+ {revealed && (
+
+ )}
+
+
+
+ );
+
+ return (
+