{#if error}

{@html $t("errors.error_occurred", { values: { message: display_error(error) }, })}

{:else if step == "loggedin"}
{@html $t("pages.wallet_login.logged_in")}...
{:else if $wallet_from_import}

{$t("pages.wallet_login.from_import.title")}

{@html $t("pages.wallet_login.from_import.description")}
{$wallet_from_import.V0.content.security_txt} {$wallet_from_import.V0.content.security_txt}
{@html $t("pages.wallet_login.from_import.instruction")}
{:else if wallet} {:else if !$active_wallet && !selected}

{$t("pages.wallet_login.select_wallet")}

{#each Object.entries($wallets) as wallet_entry}
{ select(wallet_entry[0]); }} on:keypress={() => { select(wallet_entry[0]); }} > {wallet_entry[1].wallet.V0.content.security_txt} {wallet_entry[1].wallet.V0.content.security_txt}
{/each}
{#if $has_wallets}

{$t("pages.wallet_login.with_another_wallet")}

{:else}

{$t("pages.wallet_login.import_wallet")}

{/if}
{/if}