damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

RelayType.swift (446B)


      1 //
      2 //  RelayType.swift
      3 //  damus
      4 //
      5 //  Created by William Casarin on 2023-02-10.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct RelayType: View {
     11     let is_paid: Bool
     12     
     13     var body: some View {
     14         if is_paid {
     15             Image("bitcoin-logo")
     16         }
     17     }
     18 }
     19 
     20 struct RelayType_Previews: PreviewProvider {
     21     static var previews: some View {
     22         VStack {
     23             RelayType(is_paid: false)
     24             RelayType(is_paid: true)
     25         }
     26     }
     27 }