damus

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

Reposted.swift (799B)


      1 //
      2 //  Reposted.swift
      3 //  damus
      4 //
      5 //  Created by William Casarin on 2023-01-11.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct Reposted: View {
     11     let damus: DamusState
     12     let pubkey: Pubkey
     13 
     14     var body: some View {
     15         HStack(alignment: .center) {
     16             Image("repost")
     17                 .foregroundColor(Color.gray)
     18             ProfileName(pubkey: pubkey, damus: damus, show_nip5_domain: false)
     19                     .foregroundColor(Color.gray)
     20             Text("Reposted", comment: "Text indicating that the note was reposted (i.e. re-shared).")
     21                 .foregroundColor(Color.gray)
     22         }
     23     }
     24 }
     25 
     26 struct Reposted_Previews: PreviewProvider {
     27     static var previews: some View {
     28         let test_state = test_damus_state
     29         Reposted(damus: test_state, pubkey: test_state.pubkey)
     30     }
     31 }