import { Link } from 'react-router-dom' import { motion } from 'framer-motion' import { usePlayerStore } from '../../store/playerStore' export function NowPlayingMiniBar() { const currentSong = usePlayerStore(s => s.currentSong) const isPlaying = usePlayerStore(s => s.isPlaying) const togglePlay = usePlayerStore(s => s.togglePlay) const next = usePlayerStore(s => s.next) const previous = usePlayerStore(s => s.previous) const progress = usePlayerStore(s => s.progress) const progressPercent = currentSong ? (progress / currentSong.duration) * 100 : 0 return (
{currentSong?.title || 'No song'}

{currentSong?.artist}

{isPlaying ? 'pause_circle' : 'play_circle'}
) }