Нема описа

DashboardModels.swift 1021B

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  15. protocol DashboardDataProviding {
  16. func loadDashboardData() -> DashboardData
  17. }
  18. final class MockDashboardDataProvider: DashboardDataProviding {
  19. func loadDashboardData() -> DashboardData {
  20. DashboardData(
  21. subtitle: "Find your perfect job with the power of AI.",
  22. sidebarItems: [
  23. SidebarItem(title: "Home", systemImage: "house.fill", badge: nil),
  24. SidebarItem(title: "Saved Jobs", systemImage: "heart", badge: nil),
  25. SidebarItem(title: "CV Maker", systemImage: "doc.text", badge: nil),
  26. SidebarItem(title: "Profile", systemImage: "person", badge: nil),
  27. SidebarItem(title: "Settings", systemImage: "gearshape", badge: nil)
  28. ]
  29. )
  30. }
  31. }