rotateCard(event)} on:mouseleave={() => (card.style.transform = '')} role="menuitem" tabindex="-1" >
{mediaItem.name}
{#if checkSong(mediaItem) || checkAlbum(mediaItem)} {#each mediaItem.artists as artist} {@const listIndex = mediaItem.artists.indexOf(artist)} {artist.name} {#if listIndex === mediaItem.artists.length - 2} & {:else if listIndex < mediaItem.artists.length - 2} , {/if} {/each} {/if}