<template>
  <div class="mt-8 p-8 w-96">
    <MoleculeCard v-for="track in dataStore.getTracksByCompilationId(compilation.id)" :key="track.id" :track="track" />
  </div>
</template>

<script setup lang="ts">
import { useDataStore } from '~/store/data'
import type { Compilation } from '~~/types/types'

const props = defineProps<{
  compilation: Compilation
}>()

const dataStore = useDataStore()

</script>