33 lines
885 B
Swift
33 lines
885 B
Swift
import SwiftUI
|
|
|
|
struct RevealView: View {
|
|
let title: String
|
|
let subtitle: String
|
|
let statusText: String
|
|
let selectionLabel: String
|
|
let selectionValue: String
|
|
let continueTitle: String
|
|
let onContinue: () -> Void
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: HermesTheme.sectionSpacing) {
|
|
HermesSectionHeader(title: title, subtitle: subtitle)
|
|
|
|
VStack(alignment: .leading, spacing: 12) {
|
|
HermesMetricPill(label: selectionLabel, value: selectionValue)
|
|
|
|
Text(statusText)
|
|
.font(.callout)
|
|
.foregroundStyle(HermesTheme.textSecondary)
|
|
}
|
|
|
|
Button {
|
|
onContinue()
|
|
} label: {
|
|
Text(continueTitle)
|
|
}
|
|
.buttonStyle(HermesPrimaryButtonStyle())
|
|
}
|
|
}
|
|
}
|