Added useSong composable

This commit is contained in:
lucast committed 2026-02-17 12:06:33 +01:00
1 parent baf151d9c0
commit 4854cf0690
1 file changed
+7
+7
View File
@@ -0,0 +1,7 @@
export const useSong = () => {
const { currentSong, queue } = usePlayer()
return computed<Track | undefined>(() => {
return currentSong.value ?? queue.value[0]
})
}