setupview: add learn about nostr link view

This commit is contained in:
ericholguin
2023-05-26 15:17:23 -06:00
committed by William Casarin
parent 15acdef912
commit 724773cb45

View File

@@ -69,6 +69,23 @@ func DamusWhiteButton(_ title: String, action: @escaping () -> ()) -> some View
.stroke(Color.white, lineWidth: 2.0)
.background(Color.white.opacity(0.15))
)
struct LearnAboutNostrLink: View {
@Environment(\.openURL) var openURL
var body: some View {
HStack {
Button(action: {
openURL(URL(string: "https://nostr.com")!)
}, label: {
Text("Learn more about nostr")
.foregroundColor(.accentColor)
})
Image(systemName: "arrow.up.right")
.font(.footnote)
.foregroundColor(.accentColor)
}
}
}
}
}