SongTile.svelte

<script>
	export let song;
	export let { title, album, movie, band, artists, instrument } = song;
</script>

<div class="song-meta">
	<h2 class="title">
		{[title, album || movie, band || (artists && artists.join(',')), `${instrument} Cover`]
			.filter((val) => val)
			.join(' | ')}
	</h2>
</div>

<style>
	.song-meta {
		border: 1px solid #aaa;
		padding: 1rem 2rem;
		cursor: pointer;
	}
</style>