<script>
 let musiks = [
     {
         id: 1,
         title: "Hall Of Fame",
         artist: "The Script",
         enabled: true,
     },
     {
         id: 2,
         title: "Poker face",
         artist: "Lady Gaga",
     },
     {
         id: 3,
         title: "Puisque tu m'aimes encore",
         artist: "Céline Dion",
         enabled: true,
     },
 ];

 let tracks = [2,0,1];
</script>

<h2>
    Dernières musiques jouées
</h2>
<ol class="list-group list-group-numbered">
    {#each tracks as track}
        <li class="list-group-item">{musiks[track].artist} &ndash; {musiks[track].title}</li>
    {/each}
</ol>
