/* Các tab danh sách trong Student Center. */ function StudentSubmissions({ center, go }) { const items = (center && center.submissions) || []; if (!items.length) return scEmpty("Chưa có bài đã nộp.", ); return
{items.map((it) =>
{it.title}

Bài {it.lesson} · {it.engine.label} · {scFmtDate(it.submitted_at)}

{it.status === "passed" ? "Đã đạt" : "Cần sửa"} · {it.score}/{it.max_score}
)}
; } function StudentArtifacts({ center }) { const items = (center && center.artifacts) || []; if (!items.length) return scEmpty("Chưa có thành phẩm đã gửi."); return
{items.map((it, i) => {it.kind === "image" ? "Ảnh thành phẩm" : "Tệp thành phẩm"} Bài {it.lesson || "chưa rõ"} {scFmtDate(it.ts)} )}
; } function StudentCourses({ center }) { const courses = (center && center.courses) || []; if (!courses.length) return scEmpty("Chưa tải được danh sách khóa."); return
{courses.map((c) =>
{c.name}

{c.desc || "Khóa học trong hệ sinh thái Sam Nguyễn."}

{c.owned ? "Học tiếp" : "Tìm hiểu khi cần"}
)}
; } Object.assign(window, { StudentSubmissions, StudentArtifacts, StudentCourses });