import { TUI_COLORS } from "@/lib/tui/shared/colors"; interface ProgressBarProps { current: number; max: number; } export function ProgressBar({ current, max }: ProgressBarProps) { const barWidth = 20; const progress = max > 0 ? current / max : 0; const filled = Math.min(Math.max(Math.round(progress * barWidth), 0), barWidth); const empty = barWidth - filled; return ( Iteration: [ {"█".repeat(filled)} {"░".repeat(empty)} ] {current}/{max || "?"} ); }