Added useSong composable
This commit is contained in:
1 parent
baf151d9c0
commit
4854cf0690
1 file changed
+7
@@ -0,0 +1,7 @@
|
||||
export const useSong = () => {
|
||||
const { currentSong, queue } = usePlayer()
|
||||
|
||||
return computed<Track | undefined>(() => {
|
||||
return currentSong.value ?? queue.value[0]
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user