{t("homework.check.corrected")}
{corrected}
"use client"; import { useState } from "react"; import { Button } from "@/components/ui"; import { AskButton } from "@/components/chat/AskButton"; import { useI18n } from "@/lib/i18n"; import type { HomeworkCheckRecord } from "@/lib/schemas"; import { CopyButton } from "./CopyButton"; import { FollowUpBar } from "./FollowUpBar"; /** Mode 3 result: verdict, what's right, what needs fixing, corrected version. */ export function HomeworkCheckResult({ record, onAgain, onNew, onToDeck, againLoading, }: { record: HomeworkCheckRecord; onAgain: () => void; onNew: () => void; onToDeck: () => void; againLoading: boolean; }) { const { t } = useI18n(); const [corrected, setCorrected] = useState(record.corrected); return (
{t("homework.check.title")}
{t("homework.check.verdict")}
{record.verdict}
{t("homework.check.correct")}
{t("homework.check.wrong")}
{entry.issue}
{entry.why}
{entry.fix ? ({t("homework.check.fix")}: {entry.fix}
) : null}{t("homework.check.corrected")}
{corrected}
{t("homework.toDeckNote")}