package components
import (
"strconv"
)
templ Invoice(hash string, bolt11 string, msats int, expiresIn int, paid bool) {
Payment Required
@Qr(bolt11, "lightning:"+bolt11)
{ strconv.Itoa(msats/1000) } sats
@InvoiceStatus(hash, expiresIn, paid)
}
templ InvoiceStatus(hash string, expiresIn int, paid bool) {
if paid {