Settings
{#each sections as section (section.title)} {#if getHref}
{ carousel.scrollToCenter(e.currentTarget as HTMLElement); }} >
{section.title}
{:else}
{ onSectionChange?.(section.title); carousel.scrollToCenter(e.currentTarget as HTMLElement); }} >
{section.title}
{/if} {/each}