import { motion } from 'framer-motion'; import { cn } from '@/lib/utils'; export interface ProgressBarProps { progress: number; showLabel?: boolean; size?: 'sm' | 'md' | 'lg'; variant?: 'default' | 'accent'; className?: string; } export function ProgressBar({ progress, showLabel = false, size = 'md', variant = 'accent', className, }: ProgressBarProps) { const clampedProgress = Math.min(100, Math.max(0, progress)); const sizes = { sm: 'h-1', md: 'h-1.5', lg: 'h-2.5', }; const variants = { default: 'bg-[#333d49]', accent: 'bg-gradient-accent', }; return (
{showLabel && (
Progress {clampedProgress}%
)}
); }