"use client" import { cn } from "@/lib/utils" export interface ExamLockAnswerProgressProps { answered: number total: number /** Flush to the top edge of the main card (no radius gap above). */ variant?: "default" | "card-top" className?: string } /** Answered-question progress bar for exam lock delivery. */ export function ExamLockAnswerProgress({ answered, total, variant = "default", className, }: ExamLockAnswerProgressProps) { const pct = total === 0 ? 0 : Math.round((answered / total) * 100) const cardTop = variant === "card-top" return (
) }