Açıklama Yok

DashboardModels.swift 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 subtitle: String
  13. let sidebarItems: [SidebarItem]
  14. let profileInsightsTitle: String
  15. let profileInsightsBody: String
  16. }
  17. protocol DashboardDataProviding {
  18. func loadDashboardData() -> DashboardData
  19. }
  20. final class MockDashboardDataProvider: DashboardDataProviding {
  21. func loadDashboardData() -> DashboardData {
  22. DashboardData(
  23. subtitle: "Find your perfect job with the power of AI.",
  24. sidebarItems: [
  25. SidebarItem(title: "Overview", systemImage: "house.fill", badge: nil),
  26. SidebarItem(title: "Saved Jobs", systemImage: "heart", badge: nil),
  27. SidebarItem(title: "Interviews", systemImage: "list.bullet", badge: nil),
  28. SidebarItem(title: "Profile", systemImage: "person", badge: nil),
  29. SidebarItem(title: "Settings", systemImage: "gearshape", badge: nil)
  30. ],
  31. profileInsightsTitle: "AI insights",
  32. profileInsightsBody: "Saved jobs and interviews at a glance."
  33. )
  34. }
  35. }