import SwiftUI
import Bedrock

struct PrimaryActionButton: View {
    let title: String
    let systemImage: String
    let action: () -> Void

    var body: some View {
        Button(title, systemImage: systemImage, action: action)
            .buttonStyle(.borderedProminent)
            .tint(Color.Accent.red)
            .controlSize(.large)
            .accessibilityAddTraits(.isButton)
    }
}

#Preview {
    PrimaryActionButton(title: "Send my card", systemImage: "paperplane.fill") { }
}
