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