import { type EvaluationRun, steps } from "@/hooks/useRoundEvaluationRun"; type EvaluationStepsListProps = { run: EvaluationRun | null; isOfficialRun: boolean; currentStepIndex: number; isSucceeded: boolean; }; export default function EvaluationStepsList({ run, isOfficialRun, currentStepIndex, isSucceeded, }: EvaluationStepsListProps) { if (!run || !isOfficialRun) return null; return (
Prubeh
{steps.map((step, index) => { const isCurrent = !isSucceeded && index === currentStepIndex; const isDone = isSucceeded || (currentStepIndex > -1 && index < currentStepIndex); const tone = isCurrent ? "text-foreground" : isDone ? "text-foreground-600" : "text-foreground-400"; return (
{isDone ? "●" : isCurrent ? "○" : "·"} {step.label}
); })}
); }