26 lines
600 B
Vue
26 lines
600 B
Vue
<template>
|
|
<div id="song_history">
|
|
<song-history :show-album-art="showAlbumArt" :history="history"></song-history>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import useNowPlaying, {nowPlayingProps} from '~/components/Common/NowPlaying';
|
|
import {computed} from "vue";
|
|
import SongHistory from "~/components/Public/FullPlayer/SongHistory.vue";
|
|
|
|
const props = defineProps({
|
|
...nowPlayingProps,
|
|
showAlbumArt: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
});
|
|
|
|
const np = useNowPlaying(props);
|
|
|
|
const history = computed(() => {
|
|
return np.value.song_history ?? [];
|
|
});
|
|
</script>
|