'use client' interface ProgressBarProps { answered: number total: number } export function ProgressBar({ answered, total }: ProgressBarProps) { const pct = total === 0 ? 0 : Math.round((answered / total) * 100) return (