Files
damus/damus/Views/Zaps/ZapUserView.swift
William Casarin 4d43e590e0 view: Add ZapUserView
This will be used to make it clear that we are zapping a user
2023-06-22 10:23:56 +02:00

29 lines
566 B
Swift

//
// ZapUserView.swift
// damus
//
// Created by William Casarin on 2023-06-22.
//
import SwiftUI
struct ZapUserView: View {
let state: DamusState
let pubkey: String
var body: some View {
HStack(alignment: .center) {
Text("Zap")
.font(.largeTitle)
UserView(damus_state: state, pubkey: pubkey, spacer: false)
}
}
}
struct ZapUserView_Previews: PreviewProvider {
static var previews: some View {
ZapUserView(state: test_damus_state(), pubkey: "anon")
}
}