diff --git a/src/workspaces/officerdev/src/MusicPlayer/MusicMiniBar.tsx b/src/workspaces/officerdev/src/MusicPlayer/MusicMiniBar.tsx index 033de118..fc407abe 100644 --- a/src/workspaces/officerdev/src/MusicPlayer/MusicMiniBar.tsx +++ b/src/workspaces/officerdev/src/MusicPlayer/MusicMiniBar.tsx @@ -1,7 +1,8 @@ import { useRef } from 'react'; +import { useClient } from 'hooks/useClient'; import { MicVocal, Pause, Play } from 'lucide-react'; import { SeekBar } from '../apps/FileViewer/renderers/SeekBar'; -import { fmtClock } from '../apps/Music/shared'; +import { coverUrl, fmtClock } from '../apps/Music/shared'; import { seekPlayer } from './player-time'; import { useLyricsOpen } from './useLyricsOpen'; import { useMusicPlayer } from './useMusicPlayer'; @@ -16,6 +17,7 @@ import { usePlayerClock } from './usePlayerClock'; * too many, and the dock's own row costs the workspace its height on every screen. */ export const MusicMiniBar = () => { + const { token } = useClient(); const { current, playing, toggle } = useMusicPlayer(); const [lyricsOpen, toggleLyrics] = useLyricsOpen(); const { position, duration } = usePlayerClock(); @@ -43,6 +45,17 @@ export const MusicMiniBar = () => { return (
{current.title ?? current.file}
{current.artist &&{current.artist}
}