{$t('invoice.addTipq')}
{#if !showCustomAmount}
{Math.round(tipPercent)}%
(showMobileTip = false)} />
{f(amountFiat, currency)}
+{f(tipAmount, currency)}
{s(amount)}
+{s(tip)} SAT
{#if tip}
submit.click()}>Next
(tipPercent = 0)}>Reset
{:else} {#each tipAmounts as amount}
handleTipButtonClick(amount)}>{amount}
{/each} {/if}
(showCustomAmount = true)}>Custom
{/if}
{#if showCustomAmount}
$
handleCustomTipAmount(e)} class="pl-10" placeholder="Custom amount" autofocus />
Apply
{/if}