{(a.memo ?? "").length === 0 ? <> > : a.memo}
{
switch (a.state) {
case WalletInvoiceState.Paid:
return "success";
case WalletInvoiceState.Expired:
return "expired";
case WalletInvoiceState.Failed:
return "failed";
default:
return "pending";
}
})()}`}>
{stateIcon(a.state)}
,
}}
/>
))}
>
);
}
function walletBalance() {
if (wallet instanceof WebLNWallet) return null;
return (