import SwiftUI enum SidebarIconKind: Hashable { case postGenerator case titleOptimizer case commentWriter case postAnalyzer case subredditInsights var systemImage: String { switch self { case .postGenerator: "square.and.pencil" case .titleOptimizer: "textformat.size" case .commentWriter: "bubble.left.and.bubble.right.fill" case .postAnalyzer: "chart.bar.doc.horizontal.fill" case .subredditInsights: "person.3.fill" } } var gradient: [Color] { switch self { case .postGenerator: [Color(hex: 0xC4B5FD), Color(hex: 0x7C3AED)] case .titleOptimizer: [Color(hex: 0x93C5FD), Color(hex: 0x2563EB)] case .commentWriter: [Color(hex: 0x86EFAC), Color(hex: 0x16A34A)] case .postAnalyzer: [Color(hex: 0xFDBA74), Color(hex: 0xEA580C)] case .subredditInsights: [Color(hex: 0x5EEAD4), Color(hex: 0x0D9488)] } } var glowColor: Color { gradient.last ?? gradient[0] } }