// // StoreItem.swift // Padel Club // // Created by Laurent Morvillier on 22/04/2024. // import Foundation public enum StoreItem: String, Identifiable, CaseIterable { case monthlyUnlimited = "app.padelclub.tournament.subscription.unlimited" case fivePerMonth = "app.padelclub.tournament.subscription.five.per.month" case unit = "app.padelclub.tournament.unit" #if DEBUG public static let five: Int = 2 #else public static let five: Int = 5 #endif public var id: String { return self.rawValue } public var systemImage: String { switch self { case .monthlyUnlimited: return "infinity.circle.fill" case .fivePerMonth: return "star.circle.fill" case .unit: return "tennisball.circle.fill" } } public var isConsumable: Bool { switch self { case .monthlyUnlimited, .fivePerMonth: return false case .unit: return true } } }