You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import SwiftUI
|
|
|
|
struct MenuUsageHeaderView: View {
|
|
let count: Int
|
|
|
|
var body: some View {
|
|
MenuHeaderCard(
|
|
title: "Usage",
|
|
subtitle: self.subtitle)
|
|
}
|
|
|
|
private var subtitle: String {
|
|
if self.count == 1 { return "1 provider" }
|
|
return "\(self.count) providers"
|
|
}
|
|
}
|