32 lines
799 B
Swift
32 lines
799 B
Swift
//
|
|
// Reposted.swift
|
|
// damus
|
|
//
|
|
// Created by William Casarin on 2023-01-11.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct Reposted: View {
|
|
let damus: DamusState
|
|
let pubkey: Pubkey
|
|
|
|
var body: some View {
|
|
HStack(alignment: .center) {
|
|
Image("repost")
|
|
.foregroundColor(Color.gray)
|
|
ProfileName(pubkey: pubkey, damus: damus, show_nip5_domain: false)
|
|
.foregroundColor(Color.gray)
|
|
Text("Reposted", comment: "Text indicating that the note was reposted (i.e. re-shared).")
|
|
.foregroundColor(Color.gray)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct Reposted_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
let test_state = test_damus_state
|
|
Reposted(damus: test_state, pubkey: test_state.pubkey)
|
|
}
|
|
}
|