{#if current} {#snippet trigger()} {/snippet} {#each options as option, index (option.label)} (selected = index)} > {option.label} {/each} {/if}