Newer Older
23 lines | 0.562kb
Bogdan Timofte authored a week ago
1
//
2
//  ConnectionStatusBadgeView.swift
3
//  USB Meter
4
//
5
//  Created by Bogdan Timofte on 29/03/2026.
6
//  Co-authored-by: GPT-5.3-Codex.
7
//  Copyright © 2026 Bogdan Timofte. All rights reserved.
8
//
9

            
10
import SwiftUI
11

            
12
struct ConnectionStatusBadgeView: View {
13
    let text: String
14
    let color: Color
15

            
16
    var body: some View {
17
        Text(text)
18
            .font(.caption.weight(.bold))
19
            .padding(.horizontal, 12)
20
            .padding(.vertical, 6)
21
            .meterCard(tint: color, fillOpacity: 0.24, strokeOpacity: 0.30, cornerRadius: 999)
22
    }
23
}