navModelMock.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. export const getMockNavModel = (pageName: string) => {
  2. return {
  3. node: {
  4. active: false,
  5. icon: 'users-alt',
  6. id: `team-${pageName}-2`,
  7. text: `${pageName}`,
  8. url: 'org/teams/edit/2/members',
  9. parentItem: {
  10. img: '/avatar/b5695b61c91d13e7fa2fe71cfb95de9b',
  11. id: 'team-2',
  12. subTitle: 'Manage members & settings',
  13. url: '',
  14. text: 'test1',
  15. breadcrumbs: [{ title: 'Teams', url: 'org/teams' }],
  16. children: [
  17. {
  18. active: false,
  19. icon: 'users-alt',
  20. id: 'team-members-2',
  21. text: 'Members',
  22. url: 'org/teams/edit/2/members',
  23. },
  24. {
  25. active: false,
  26. icon: 'sliders-v-alt',
  27. id: 'team-settings-2',
  28. text: 'Settings',
  29. url: 'org/teams/edit/2/settings',
  30. },
  31. ],
  32. },
  33. },
  34. main: {
  35. img: '/avatar/b5695b61c91d13e7fa2fe71cfb95de9b',
  36. id: 'team-2',
  37. subTitle: 'Manage members & settings',
  38. url: '',
  39. text: 'test1',
  40. breadcrumbs: [{ title: 'Teams', url: 'org/teams' }],
  41. children: [
  42. {
  43. active: true,
  44. icon: 'users-alt',
  45. id: 'team-members-2',
  46. text: 'Members',
  47. url: 'org/teams/edit/2/members',
  48. },
  49. {
  50. active: false,
  51. icon: 'sliders-v-alt',
  52. id: 'team-settings-2',
  53. text: 'Settings',
  54. url: 'org/teams/edit/2/settings',
  55. },
  56. ],
  57. },
  58. };
  59. };