import React from 'react'; import './style.scss'; export interface AudioProgressBarProps { /** Progress percentage (0-100) */ progress: number; /** Whether the progress bar is active/visible */ isActive?: boolean; /** Custom height */ height?: number; /** Show percentage text */ showPercentage?: boolean; /** Custom label */ label?: string; /** Animated gradient effect */ animated?: boolean; /** Custom className */ className?: string; } export const AudioProgressBar: React.FC = ({ progress, isActive = true, height = 8, showPercentage = false, label, animated = true, className = '' }) => { const clampedProgress = Math.max(0, Math.min(100, progress)); return (
{(label || showPercentage) && (
{label && {label}} {showPercentage && ( {Math.round(clampedProgress)}% )}
)}
); };