4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 05:06:37 +00:00
AzuraCast/frontend/vue/components/Public/History.vue
2022-12-29 15:15:05 -06:00

29 lines
616 B
Vue

<template>
<div id="song_history">
<song-history
:show-album-art="showAlbumArt"
:history="history"
/>
</div>
</template>
<script setup>
import useNowPlaying, {nowPlayingProps} from '~/functions/useNowPlaying';
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>