import SwiftUI

struct InstanceBadge: View {
    let name: String

    var body: some View {
        Text(name)
            .font(.caption2)
            .fontWeight(.medium)
            .padding(.horizontal, 6)
            .padding(.vertical, 2)
            .glassEffect(.regular.tint(colorForLanguage(name)))
            .accessibilityIdentifier("instance-badge")
    }
}
