Version casi lista
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import SwiftUI
|
||||
|
||||
struct PremiumUpsellBanner: View {
|
||||
let messageKey: LocalizedStringKey
|
||||
let actionTitleKey: LocalizedStringKey
|
||||
let action: () -> Void
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: "star.circle")
|
||||
Text(messageKey)
|
||||
Spacer()
|
||||
Button(actionTitleKey, action: action)
|
||||
.font(.mealMoodCaption)
|
||||
.fontWeight(.semibold)
|
||||
}
|
||||
.font(.mealMoodCaption)
|
||||
.foregroundColor(.mealMoodCoral)
|
||||
.padding(12)
|
||||
.background(Color.mealMoodSurface)
|
||||
.cornerRadius(12)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user