{ e.preventDefault(); asked = text.trim(); }} >
{#if search.isPending && asked}

Asking MusicBrainz…

{:else if search.isError}

Couldn't reach MusicBrainz. A pasted link works the same.

{:else if asked && results.length === 0}

MusicBrainz has no album like that.

{:else if results.length > 0} {/if}
{ e.preventDefault(); if (link.trim()) onMatch(link.trim()); }} >