{#if items.length === 0}
{defaultText}
{/if} {#each items as item, i}
onClick(i)}> {item}
{/each}