{#each labels ?? [] as label (label)}
{label}
removeLabel(label)}>
{/each} {#if adding}
{#if suggestions.length > 0 || showCreateNew}
{#each suggestions as suggestion, i}
{ e.preventDefault() addLabel(suggestion) }} > {suggestion}
{/each} {#if showCreateNew}
{ e.preventDefault() addLabel() }} > + Create "{trimmedInput}"
{/if}
{/if}
{:else}
{/if}