{#if hasSelection} Selected {selectedPeople.length} {:else} Merge people {/if}

Choose matching people to merge

{#each selectedPeople as person (person.id)}
onSelect(person)} />
{/each} {#if hasSelection}
{#if selectedPeople.length === 1}
{/if}
{/if}
onSelect(detail)} />