{ handleSelected(e); restProps.onselected?.(e); }} > {#each segments as segmentKey, i (key(segmentKey))} {@render segment(segmentKey)} {/each}