{#snippet children()}
{$t('homeSettings.greeting')}
{$t('homeSettings.showGreeting')} {$t('homeSettings.showGreetingDesc')}
{#if settings.greeting.enabled}
{$t('homeSettings.customGreeting')} {$t('homeSettings.customGreetingDesc')}
e.key === 'Enter' && handleCustomGreetingChange()} />
{/if}
{$t('homeSettings.sections')}

{$t('homeSettings.sectionsDesc')}

{#each settings.sections as section, index (section.id)}
{#if section.id === 'recentAlbums' && section.visible}
handleLimitChange('recentAlbums', Number(e.currentTarget.value))} />
{:else if section.id === 'continueTracks' && section.visible}
handleLimitChange('continueTracks', Number(e.currentTarget.value))} />
{:else if section.id === 'topArtists' && section.visible}
handleLimitChange('topArtists', Number(e.currentTarget.value))} />
{:else if section.id === 'favoriteAlbums' && section.visible}
handleLimitChange('favoriteAlbums', Number(e.currentTarget.value))} />
{:else if (section.id === 'newReleases' || section.id === 'pressAwards' || section.id === 'mostStreamed' || section.id === 'qobuzissimes' || section.id === 'editorPicks') && section.visible}
handleLimitChange('featuredAlbums', Number(e.currentTarget.value))} />
{/if}
{/each}
{/snippet} {#snippet footer()} {/snippet}