import SwiftUI

public struct InlineTextBadgeView: View {
    public let label: String
    public let textColor: Color
    public let accentColor: Color

    public init(label: String, textColor: Color, accentColor: Color) {
        self.label = label
        self.textColor = textColor
        self.accentColor = accentColor
    }

    public var body: some View {
        Text(label)
            .typographyV1(.body3)
            .multilineTextAlignment(.center)
            .foregroundStyle(textColor)
            .padding(.horizontal, 8.0)
            .background(accentColor)
            .clipShape(.rect(cornerRadius: 8.0))
    }
}
