import SwiftUI
import Bedrock

struct TodayHeaderView: View {
    private let dateText: String

    init(dateText: String) {
        self.dateText = dateText
    }

    var body: some View {
        VStack(alignment: .leading, spacing: Design.Spacing.xxxSmall) {
            StyledLabel(String(localized: "Today"), .heroBold, emphasis: .custom(AppTextColors.primary))
            StyledLabel(dateText, .subheading, emphasis: .custom(AppTextColors.secondary))
        }
        .frame(maxWidth: .infinity, alignment: .leading)
        .accessibilityElement(children: .combine)
    }
}

#Preview {
    TodayHeaderView(dateText: "Sunday, January 25")
        .padding(Design.Spacing.large)
        .background(AppSurface.primary)
}
