import Foundation enum PaywallPlan: String, CaseIterable, Identifiable { case monthly case yearly case lifetime var id: String { rawValue } var title: String { switch self { case .monthly: "Monthly" case .yearly: "Yearly" case .lifetime: "Lifetime" } } var subtitle: String { switch self { case .monthly: "Billed every month" case .yearly: "Save 42%. Billed once per year." case .lifetime: "One-time payment. All future updates." } } var price: String { switch self { case .monthly: "$7.99" case .yearly: "$49.99" case .lifetime: "$79.99" } } var priceSuffix: String? { switch self { case .monthly: "/mo" case .yearly: "/yr" case .lifetime: nil } } var isBestValue: Bool { self == .yearly } var features: [String] { switch self { case .monthly, .yearly: [ "Unlimited AI Generations", "Post Generator & Title Optimizer", "Comment Writer with smart replies", ] case .lifetime: [ "Pay once, use forever", "Priority Support", "Multi-device Sync", ] } } } struct PaywallFeature: Identifiable { let id = UUID() let title: String let systemImage: String } enum PaywallContent { static let title = "Unlock Full Pro Power" static let subtitle = "Generate unlimited posts, optimize titles, and craft smarter replies with advanced AI." static let includedSectionTitle = "Everything included in Premium" static let features: [PaywallFeature] = [ PaywallFeature(title: "Unlimited AI Generations", systemImage: "sparkles"), PaywallFeature(title: "Post Generator", systemImage: "square.and.pencil"), PaywallFeature(title: "Title Optimizer", systemImage: "textformat.size"), PaywallFeature(title: "Comment Writer", systemImage: "bubble.left.and.bubble.right.fill"), PaywallFeature(title: "Custom AI Prompts", systemImage: "wand.and.stars"), PaywallFeature(title: "Post Analytics", systemImage: "chart.bar.fill"), ] }