30 lines
792 B
Swift
30 lines
792 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct AttachmentHeader: View {
|
||
|
@EnvironmentObject var store: AppStore
|
||
|
|
||
|
var body: some View {
|
||
|
ZStack {
|
||
|
// bg
|
||
|
Color.Main.backgroundDark
|
||
|
.ignoresSafeArea()
|
||
|
|
||
|
// title
|
||
|
Text(L10n.Attachment.Prompt.main)
|
||
|
.font(.head2)
|
||
|
.foregroundColor(Color.Main.black)
|
||
|
|
||
|
HStack {
|
||
|
Spacer()
|
||
|
Image(systemName: "xmark")
|
||
|
.foregroundColor(Color.Tango.orangeMedium)
|
||
|
.tappablePadding(.symmetric(12)) {
|
||
|
store.dispatch(.conversationAction(.showAttachmentPicker(false)))
|
||
|
}
|
||
|
}
|
||
|
.padding(.horizontal, 16)
|
||
|
}
|
||
|
.frame(height: 44)
|
||
|
}
|
||
|
}
|