{#each items as item}
{ dispatch('select', item) if (item.action !== undefined) item.action() }} /> {/each}