Files
sodalive-ios/SodaLive/Sources/Report/ProfileReportDialogView.swift

58 lines
1.8 KiB
Swift

//
// ProfileReportDialogView.swift
// SodaLive
//
// Created by klaus on 2023/08/11.
//
import SwiftUI
struct ProfileReportDialogView: View {
@Binding var isShowing: Bool
let confirmAction: () -> Void
var body: some View {
ZStack {
Color.black
.opacity(0.7)
.ignoresSafeArea()
.onTapGesture { isShowing = false }
VStack(spacing: 13.3) {
Text(I18n.Report.profilePhotoReportTitle)
.appFont(size: 16.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
Text(I18n.Report.profilePhotoReportDescription)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "909090"))
HStack(spacing: 26.7) {
Spacer()
Text(I18n.Common.cancel)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {
isShowing = false
}
Text(I18n.Report.reportAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {
isShowing = false
confirmAction()
}
}
.padding(.top, 13.3)
}
.padding(24)
.frame(width: screenSize().width - 33.3)
.background(Color(hex: "222222"))
.cornerRadius(13.3)
}
}
}