import {
  mdiAccount,
  mdiLogout,
  mdiThemeLightDark,
  mdiViewDashboardOutline,
  mdiTable,
  mdiAccountGroup,
  mdiCog,
  mdiShieldAccountVariantOutline,
  mdiShieldAccountOutline,
  mdiAccountCircle,
  mdiFileCode,
  mdiFlask,
  mdiGreenhouse,
  mdiMapMarker,
  mdiDomain,
  mdiTagMultiple,
  mdiSprout,
  mdiGrid,
  mdiFlower,
  mdiChartBellCurve,
  mdiClipboardText,
  mdiRuler,
  mdiImageMultiple,
  mdiFileChart,
  mdiFileDocumentOutline,
  mdiApi,
} from '@mdi/js'
import { MenuNavBarItem } from './interfaces'

const menuNavBar: MenuNavBarItem[] = [
  {
    href: '/dashboard',
    icon: mdiViewDashboardOutline,
    label: 'Home',
  },
  {
    label: 'Projects',
    icon: mdiGreenhouse,
    menu: [
      {
        href: '/farms/farms-list',
        label: 'Projects List',
        icon: mdiGreenhouse,
        permissions: 'READ_FARMS'
      },
      {
        href: '/trial_sites/trial_sites-list',
        label: 'Trial Sites',
        icon: mdiMapMarker,
        permissions: 'READ_TRIAL_SITES'
      },
      {
        href: '/organizations/organizations-list',
        label: 'Organizations',
        icon: mdiTable,
        permissions: 'READ_ORGANIZATIONS'
      },
      {
        href: '/tenants/tenants-list',
        label: 'Tenants',
        icon: mdiDomain,
        permissions: 'READ_TENANTS'
      },
    ]
  },
  {
    label: 'Trials',
    icon: mdiFlask,
    menu: [
      {
        href: '/trials/trials-list',
        label: 'Trials List',
        icon: mdiFlask,
        permissions: 'READ_TRIALS'
      },
      {
        href: '/trial_entries/trial_entries-list',
        label: 'Trial Entries',
        icon: mdiTagMultiple,
        permissions: 'READ_TRIAL_ENTRIES'
      },
      {
        href: '/varieties/varieties-list',
        label: 'Varieties',
        icon: mdiSprout,
        permissions: 'READ_VARIETIES'
      },
      {
        href: '/plots/plots-list',
        label: 'Plots',
        icon: mdiGrid,
        permissions: 'READ_PLOTS'
      },
      {
        href: '/plants/plants-list',
        label: 'Plants',
        icon: mdiFlower,
        permissions: 'READ_PLANTS'
      },
    ]
  },
  {
    label: 'Tracking',
    icon: mdiChartBellCurve,
    menu: [
      {
        href: '/observations/observations-list',
        label: 'Observations',
        icon: mdiChartBellCurve,
        permissions: 'READ_OBSERVATIONS'
      },
      {
        href: '/observation_events/observation_events-list',
        label: 'Observation Events',
        icon: mdiClipboardText,
        permissions: 'READ_OBSERVATION_EVENTS'
      },
      {
        href: '/traits/traits-list',
        label: 'Traits',
        icon: mdiRuler,
        permissions: 'READ_TRAITS'
      },
      {
        href: '/media_assets/media_assets-list',
        label: 'Media Assets',
        icon: mdiImageMultiple,
        permissions: 'READ_MEDIA_ASSETS'
      },
    ]
  },
  {
    href: '/users/users-list',
    label: 'Users',
    icon: mdiAccountGroup,
    permissions: 'READ_USERS'
  },
  {
    label: 'Reports',
    icon: mdiFileChart,
    menu: [
      {
        href: '/reports/reports-list',
        label: 'Reports List',
        icon: mdiFileChart,
        permissions: 'READ_REPORTS'
      },
      {
        href: '/report_templates/report_templates-list',
        label: 'Report Templates',
        icon: mdiFileDocumentOutline,
        permissions: 'READ_REPORT_TEMPLATES'
      },
    ]
  },
  {
    label: 'Settings',
    icon: mdiCog,
    menu: [
      {
        href: '/roles/roles-list',
        label: 'Roles',
        icon: mdiShieldAccountVariantOutline,
        permissions: 'READ_ROLES'
      },
      {
        href: '/permissions/permissions-list',
        label: 'Permissions',
        icon: mdiShieldAccountOutline,
        permissions: 'READ_PERMISSIONS'
      },
      {
        href: '/api_clients/api_clients-list',
        label: 'API Clients',
        icon: mdiApi,
        permissions: 'READ_API_CLIENTS'
      },
      {
        href: '/profile',
        label: 'Profile',
        icon: mdiAccountCircle,
      },
      {
        href: '/api-docs',
        target: '_blank',
        label: 'Swagger API',
        icon: mdiFileCode,
        permissions: 'READ_API_DOCS'
      },
    ]
  },
  {
    isCurrentUser: true,
    menu: [
      {
        icon: mdiAccount,
        label: 'My Profile',
        href: '/profile',
      },
      {
        isDivider: true,
      },
      {
        icon: mdiLogout,
        label: 'Log Out',
        isLogout: true,
      },
    ],
  },
  {
    icon: mdiThemeLightDark,
    label: 'Light/Dark',
    isDesktopNoLabel: true,
    isToggleLightDark: true,
  },
  {
    icon: mdiLogout,
    label: 'Log out',
    isDesktopNoLabel: true,
    isLogout: true,
  },
]

export const webPagesNavBar = [
    
];

export default menuNavBar