koel/resources/assets/js/components/screens/home/MostPlayedAlbums.vue
2022-07-10 18:12:04 +02:00

19 lines
465 B
Vue

<template>
<section>
<h1>Top Albums</h1>
<ol class="two-cols top-album-list">
<li v-for="album in albums" :key="album.id">
<AlbumCard :album="album" layout="compact"/>
</li>
</ol>
</section>
</template>
<script lang="ts" setup>
import { toRef } from 'vue'
import { overviewStore } from '@/stores'
import AlbumCard from '@/components/album/AlbumCard.vue'
const albums = toRef(overviewStore.state, 'mostPlayedAlbums')
</script>