Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-07-25 18:45:46 +00:00
committed by GitHub
parent 745f164482
commit 1dfb86fa15
4 changed files with 130 additions and 40 deletions

View File

@@ -634,6 +634,7 @@ export const AudioPlayer: React.FC = () => {
e.preventDefault();
}}
type="button"
data-testid="play-pause-button"
aria-label={isPlaying ? 'Pause' : 'Play'}
>
{isPlaying ? <FaPause className="w-5 h-5" /> : <FaPlay className="w-5 h-5" />}