Нет описания

DashboardModels.swift 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // DashboardModels.swift
  3. // App for Indeed
  4. //
  5. import Foundation
  6. struct SidebarItem {
  7. let title: String
  8. let systemImage: String
  9. let badge: String?
  10. }
  11. struct DashboardData {
  12. let greetingName: String
  13. let subtitle: String
  14. let sidebarItems: [SidebarItem]
  15. let profileInsightsTitle: String
  16. let profileInsightsBody: String
  17. let profileInsightsLinkTitle: String
  18. }
  19. protocol DashboardDataProviding {
  20. func loadDashboardData() -> DashboardData
  21. }
  22. final class MockDashboardDataProvider: DashboardDataProviding {
  23. func loadDashboardData() -> DashboardData {
  24. DashboardData(
  25. greetingName: "Olivia",
  26. subtitle: "Find your perfect job with the power of AI.",
  27. sidebarItems: [
  28. SidebarItem(title: "Overview", systemImage: "house.fill", badge: nil),
  29. SidebarItem(title: "Saved Jobs", systemImage: "heart", badge: nil),
  30. SidebarItem(title: "Interviews", systemImage: "list.bullet", badge: nil),
  31. SidebarItem(title: "Profile", systemImage: "person", badge: nil),
  32. SidebarItem(title: "Settings", systemImage: "gearshape", badge: nil)
  33. ],
  34. profileInsightsTitle: "AI Profile Insights",
  35. profileInsightsBody: "Your personal dashboard, powered by AI. Check your saved jobs and upcoming interviews.",
  36. profileInsightsLinkTitle: "View Full Insights"
  37. )
  38. }
  39. }