27 lines
792 B
Swift
27 lines
792 B
Swift
import SwiftUI
|
|
import Bedrock
|
|
|
|
struct TodayEmptyStateView: View {
|
|
@Bindable var store: RitualStore
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: Design.Spacing.large) {
|
|
SectionHeaderView(
|
|
title: String(localized: "No ritual yet"),
|
|
subtitle: String(localized: "Begin a four-week arc")
|
|
)
|
|
|
|
EmptyStateCardView(
|
|
title: String(localized: "Start your first ritual"),
|
|
message: String(localized: "Choose a theme and keep your focus clear for 28 days."),
|
|
actionTitle: String(localized: "Create ritual"),
|
|
action: { store.createQuickRitual() }
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
TodayEmptyStateView(store: RitualStore.preview)
|
|
}
|