<% if (ob.show) { %>
<% if (ob.fetchingFee) { // invisible heading for spacing purposes %> <% } else { %>
<%= ob.polyT(ob.fetchError ? 'wallet.spendConfirmBox.errorHeading' : 'wallet.spendConfirmBox.heading') %>
<% } %>
<% if (ob.fetchingFee) { %>
<%= ob.spinner({ className: 'spinnerMd' }) %>
<% } else if (ob.fetchFailed) { if (ob.fetchError === 'ERROR_INSUFFICIENT_FUNDS') { %>

<%= ob.polyT('wallet.spendConfirmBox.bodyInsufficientFunds') %>

<% } else if (ob.fetchError === 'ERROR_DUST_AMOUNT') { %>

<%= ob.polyT('wallet.spendConfirmBox.bodyDustAmount') %>

<% } else { %>

<%= ob.polyT('wallet.spendConfirmBox.bodyGenericError', { err: ob.fetchError || '' }) %>

<%= ob.polyT('wallet.spendConfirmBox.btnRetry') %> <% } %> <% } else if (typeof ob.fee === 'number') { let feeText = ob.currencyMod.pairedCurrency( ob.fee, ob.currencyMod.getServerCurrency().code, ob.displayCurrency ); %>

<%= ob.polyT('wallet.spendConfirmBox.body', { currencyPairing: feeText, }) %>

<% } %>

<% if (ob.fetchingFee) { // invisible button for spacing purposes %> <% } else if (!ob.fetchFailed) { %> <%= ob.polyT('wallet.spendConfirmBox.btnCancel') %> <%= ob.btnSendText %> <% } else { %> <%= ob.polyT('wallet.spendConfirmBox.btnClose') %> <% } %>
<% } %>