rotateCard(event)} on:mouseleave={() => (card.style.transform = '')} role="menuitem" tabindex="0"> {#if mediaItem.thumbnail} {mediaItem.name} thumbnail {:else}
{/if}
{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} {#if mediaItem.type} {/if}