interface Props { current: number max: number } export default function ProgressBar({ current, max }: Props) { const pct = Math.min((current / max) * 100, 100) return (
Progress Question {current} of {max}
) }