{t('settings.title')}

{#if tab === 0 && me}
{#if me && me.profilePicture}
pfpField.click()} on:keydown={e => e.key === 'Enter' && pfpField.click()} role="button" tabindex="0" class="clickable"> Profile
{:else} {/if}
{#each profileFields as [field, name], i (field)}
changed = [...changed, field]} placeholder={field === 'password' ? t('settings.profile.unchanged') : t('settings.profile.unset')}/> {#if changed.includes(field) && me[field]} {/if}
{/each}
submit('optOutOfLeaderboard', me.optOutOfLeaderboard.toString())}/>
{:else if tabs[tab] === 'chu3'} {:else if tabs[tab] === 'mai2'} {:else if tabs[tab] === 'wacca'} {:else if tabs[tab] === 'game'} {/if}
{#if pfpCropURL != null}
pfpCrop = e.pixels} image={pfpCropURL ?? "assets/imgs/no_profile.png"} aspect={1} cropShape="round">
{/if}