if (!data || loading) {
return
}
let status = 'pending'
let variant = 'default'
switch (data.withdrawl.status) {
case 'CONFIRMED':
status = `sent ${data.withdrawl.satsPaid} sats with ${data.withdrawl.satsFeePaid} sats in routing fees`
variant = 'confirmed'
break
case 'INSUFFICIENT_BALANCE':
status = <>insufficient balance contact keyan!>
variant = 'failed'
break
case 'INVALID_PAYMENT':
status = 'invalid invoice'
variant = 'failed'
break
case 'PATHFINDING_TIMEOUT':
status = <>timed out finding route try increasing max fee>
variant = 'failed'
break
case 'ROUTE_NOT_FOUND':
status = <>no route try increasing max fee>
variant = 'failed'
break
default:
break
}
return (
<>