Your Wallet {#if $session?.wallet}
{#if walletStatus === "checking"} Checking {:else if walletStatus === "connected"} Connected {:else} Unavailable {/if}
{:else} {/if}
{#if $session?.wallet} {#if $session.wallet.type === "webln"} {@const {node, version} = $session.wallet.info}

{connectionVerb} {node?.alias || version || "unknown wallet"} via {$session.wallet.type}

{#if walletStatus === "connected"} Balance: {#await getWebLn() ?.enable() .then(() => getWebLn().getBalance())} {:then res} {new Intl.NumberFormat(LOCALE).format(res?.balance || 0)} {:catch} [unknown] {/await} sats {:else if walletStatus === "checking"} Balance: {:else} Balance unavailable {/if}

{:else if $session.wallet.type === "nwc"} {@const {lud16, relayUrl} = $session.wallet.info}

{connectionVerb} {lud16} via {displayRelayUrl(relayUrl)}

{#if walletStatus === "connected"} Balance: {#await getNwcClient().getBalance()} {:then res} {new Intl.NumberFormat(LOCALE).format(fromMsats(res?.balance || 0))} {:catch} [unknown] {/await} sats {:else if walletStatus === "checking"} Balance: {:else} Balance unavailable {/if}

{/if}
{:else}

No wallet connected

{/if}
Lightning Address
{profileLightningAddress ? profileLightningAddress : "Not set"}
{#if profileLightningAddress && walletLud16 && profile?.lud16 !== walletLud16}
Your profile has a different lightning address than your connected wallet.
{/if}
Zap Amounts

Preset amounts shown when sending a zap.

{#each zapAmountDraft as amount, index}
{/each}