{#if !loading && !error}
{t("userbox.header.general")}
{t("userbox.header.userbox")}
{#each userItems as { iKey, ubKey, items }, i}
{ts(`userbox.${ubKey}`)}
changed = [...changed, ubKey]}> {#each items as option}
{allItems[iKey][option.itemId]?.name || `(unknown ${option.itemId})`}
{/each}
{#if changed.includes(ubKey)}
submit(ubKey)} disabled={!!submitting}> {t("settings.profile.save")}
{/if}
{/each}
{#if HAS_USERBOX_ASSETS}
{t("userbox.header.preview")}
{t("userbox.preview.notice")}
{#if preview}
{#each userItems.filter(v => v.iKey != 'trophy' && v.iKey != 'systemVoice') as { iKey, ubKey, items }, i}
{ts(`userbox.${ubKey}`)}
{/each}
{/if} {/if}
{/if}