import * as icon from '@mdi/js';
import { MenuAsideItem } from './interfaces'

const menuAside: MenuAsideItem[] = [
  {
    href: '/dashboard',
    icon: icon.mdiViewDashboardOutline,
    label: 'Home',
  },
  {
    href: '/daily-pulse',
    label: 'Daily Pulse',
    icon: 'mdiHeartPulse' in icon ? icon['mdiHeartPulse' as keyof typeof icon] : icon.mdiChartTimelineVariant,
  },
  {
    href: '/onboarding',
    label: 'Onboarding',
    icon: icon.mdiAccount,
  },
  
  {
    href: '/users/users-list',
    label: 'Users',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: icon.mdiAccountGroup ?? icon.mdiTable,
    permissions: 'READ_USERS'
  },
  {
    href: '/roles/roles-list',
    label: 'Roles',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: icon.mdiShieldAccountVariantOutline ?? icon.mdiTable,
    permissions: 'READ_ROLES'
  },
  {
    href: '/permissions/permissions-list',
    label: 'Permissions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: icon.mdiShieldAccountOutline ?? icon.mdiTable,
    permissions: 'READ_PERMISSIONS'
  },
  {
    href: '/user_physical_baselines/user_physical_baselines-list',
    label: 'User physical baselines',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHumanMaleHeight' in icon ? icon['mdiHumanMaleHeight' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_USER_PHYSICAL_BASELINES'
  },
  {
    href: '/user_lifestyle_baselines/user_lifestyle_baselines-list',
    label: 'User lifestyle baselines',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiLeaf' in icon ? icon['mdiLeaf' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_USER_LIFESTYLE_BASELINES'
  },
  {
    href: '/goals/goals-list',
    label: 'Goals',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTarget' in icon ? icon['mdiTarget' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_GOALS'
  },
  {
    href: '/conditions/conditions-list',
    label: 'Conditions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHeartPulse' in icon ? icon['mdiHeartPulse' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_CONDITIONS'
  },
  {
    href: '/surgeries/surgeries-list',
    label: 'Surgeries',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiScalpel' in icon ? icon['mdiScalpel' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SURGERIES'
  },
  {
    href: '/implants_devices/implants_devices-list',
    label: 'Implants devices',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiChip' in icon ? icon['mdiChip' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_IMPLANTS_DEVICES'
  },
  {
    href: '/allergies/allergies-list',
    label: 'Allergies',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAllergy' in icon ? icon['mdiAllergy' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_ALLERGIES'
  },
  {
    href: '/family_histories/family_histories-list',
    label: 'Family histories',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAccountGroup' in icon ? icon['mdiAccountGroup' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FAMILY_HISTORIES'
  },
  {
    href: '/healthcare_providers/healthcare_providers-list',
    label: 'Healthcare providers',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiDoctor' in icon ? icon['mdiDoctor' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HEALTHCARE_PROVIDERS'
  },
  {
    href: '/pharmacies/pharmacies-list',
    label: 'Pharmacies',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiPharmacy' in icon ? icon['mdiPharmacy' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_PHARMACIES'
  },
  {
    href: '/medications/medications-list',
    label: 'Medications',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiPill' in icon ? icon['mdiPill' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEDICATIONS'
  },
  {
    href: '/medication_doses/medication_doses-list',
    label: 'Medication doses',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiClockCheck' in icon ? icon['mdiClockCheck' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEDICATION_DOSES'
  },
  {
    href: '/medication_side_effects/medication_side_effects-list',
    label: 'Medication side effects',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAlertCircle' in icon ? icon['mdiAlertCircle' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEDICATION_SIDE_EFFECTS'
  },
  {
    href: '/supplements/supplements-list',
    label: 'Supplements',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBottleTonicPlus' in icon ? icon['mdiBottleTonicPlus' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SUPPLEMENTS'
  },
  {
    href: '/supplement_evidence_items/supplement_evidence_items-list',
    label: 'Supplement evidence items',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFlask' in icon ? icon['mdiFlask' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SUPPLEMENT_EVIDENCE_ITEMS'
  },
  {
    href: '/workouts/workouts-list',
    label: 'Workouts',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiDumbbell' in icon ? icon['mdiDumbbell' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_WORKOUTS'
  },
  {
    href: '/exercises/exercises-list',
    label: 'Exercises',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiArmFlex' in icon ? icon['mdiArmFlex' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_EXERCISES'
  },
  {
    href: '/workout_exercises/workout_exercises-list',
    label: 'Workout exercises',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFormatListNumbered' in icon ? icon['mdiFormatListNumbered' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_WORKOUT_EXERCISES'
  },
  {
    href: '/workout_schedules/workout_schedules-list',
    label: 'Workout schedules',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalendarFitness' in icon ? icon['mdiCalendarFitness' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_WORKOUT_SCHEDULES'
  },
  {
    href: '/training_blocks/training_blocks-list',
    label: 'Training blocks',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTimeline' in icon ? icon['mdiTimeline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_TRAINING_BLOCKS'
  },
  {
    href: '/workout_sessions/workout_sessions-list',
    label: 'Workout sessions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiRun' in icon ? icon['mdiRun' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_WORKOUT_SESSIONS'
  },
  {
    href: '/strength_sets/strength_sets-list',
    label: 'Strength sets',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiWeightLifter' in icon ? icon['mdiWeightLifter' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_STRENGTH_SETS'
  },
  {
    href: '/cardio_sessions/cardio_sessions-list',
    label: 'Cardio sessions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBike' in icon ? icon['mdiBike' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_CARDIO_SESSIONS'
  },
  {
    href: '/recovery_logs/recovery_logs-list',
    label: 'Recovery logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHeartFlash' in icon ? icon['mdiHeartFlash' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_RECOVERY_LOGS'
  },
  {
    href: '/heat_cold_exposures/heat_cold_exposures-list',
    label: 'Heat cold exposures',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiThermometer' in icon ? icon['mdiThermometer' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HEAT_COLD_EXPOSURES'
  },
  {
    href: '/flexibility_assessments/flexibility_assessments-list',
    label: 'Flexibility assessments',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiYoga' in icon ? icon['mdiYoga' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FLEXIBILITY_ASSESSMENTS'
  },
  {
    href: '/foods/foods-list',
    label: 'Foods',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFoodApple' in icon ? icon['mdiFoodApple' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FOODS'
  },
  {
    href: '/recipes/recipes-list',
    label: 'Recipes',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBookOpenVariant' in icon ? icon['mdiBookOpenVariant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_RECIPES'
  },
  {
    href: '/recipe_collections/recipe_collections-list',
    label: 'Recipe collections',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFolderMultiple' in icon ? icon['mdiFolderMultiple' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_RECIPE_COLLECTIONS'
  },
  {
    href: '/meals/meals-list',
    label: 'Meals',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiSilverwareForkKnife' in icon ? icon['mdiSilverwareForkKnife' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEALS'
  },
  {
    href: '/meal_items/meal_items-list',
    label: 'Meal items',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFood' in icon ? icon['mdiFood' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEAL_ITEMS'
  },
  {
    href: '/nutrition_targets/nutrition_targets-list',
    label: 'Nutrition targets',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalculatorVariant' in icon ? icon['mdiCalculatorVariant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_NUTRITION_TARGETS'
  },
  {
    href: '/meal_plans/meal_plans-list',
    label: 'Meal plans',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalendarText' in icon ? icon['mdiCalendarText' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEAL_PLANS'
  },
  {
    href: '/meal_plan_items/meal_plan_items-list',
    label: 'Meal plan items',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFoodVariant' in icon ? icon['mdiFoodVariant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEAL_PLAN_ITEMS'
  },
  {
    href: '/grocery_lists/grocery_lists-list',
    label: 'Grocery lists',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCartOutline' in icon ? icon['mdiCartOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_GROCERY_LISTS'
  },
  {
    href: '/grocery_items/grocery_items-list',
    label: 'Grocery items',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFormatListCheckmarks' in icon ? icon['mdiFormatListCheckmarks' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_GROCERY_ITEMS'
  },
  {
    href: '/hydration_logs/hydration_logs-list',
    label: 'Hydration logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCupWater' in icon ? icon['mdiCupWater' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HYDRATION_LOGS'
  },
  {
    href: '/fasting_sessions/fasting_sessions-list',
    label: 'Fasting sessions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTimerSand' in icon ? icon['mdiTimerSand' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FASTING_SESSIONS'
  },
  {
    href: '/ketone_glucose_logs/ketone_glucose_logs-list',
    label: 'Ketone glucose logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBloodBag' in icon ? icon['mdiBloodBag' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_KETONE_GLUCOSE_LOGS'
  },
  {
    href: '/bowel_movements/bowel_movements-list',
    label: 'Bowel movements',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiToilet' in icon ? icon['mdiToilet' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_BOWEL_MOVEMENTS'
  },
  {
    href: '/gut_symptom_logs/gut_symptom_logs-list',
    label: 'Gut symptom logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiStomach' in icon ? icon['mdiStomach' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_GUT_SYMPTOM_LOGS'
  },
  {
    href: '/health_metrics/health_metrics-list',
    label: 'Health metrics',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiChartLine' in icon ? icon['mdiChartLine' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HEALTH_METRICS'
  },
  {
    href: '/symptom_logs/symptom_logs-list',
    label: 'Symptom logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiEmoticonSickOutline' in icon ? icon['mdiEmoticonSickOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SYMPTOM_LOGS'
  },
  {
    href: '/medical_appointments/medical_appointments-list',
    label: 'Medical appointments',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalendarClock' in icon ? icon['mdiCalendarClock' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MEDICAL_APPOINTMENTS'
  },
  {
    href: '/lab_documents/lab_documents-list',
    label: 'Lab documents',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFileDocument' in icon ? icon['mdiFileDocument' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_LAB_DOCUMENTS'
  },
  {
    href: '/vaccinations/vaccinations-list',
    label: 'Vaccinations',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiNeedle' in icon ? icon['mdiNeedle' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_VACCINATIONS'
  },
  {
    href: '/ai_chat_threads/ai_chat_threads-list',
    label: 'Ai chat threads',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiChatProcessing' in icon ? icon['mdiChatProcessing' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_AI_CHAT_THREADS'
  },
  {
    href: '/ai_chat_messages/ai_chat_messages-list',
    label: 'Ai chat messages',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiMessageText' in icon ? icon['mdiMessageText' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_AI_CHAT_MESSAGES'
  },
  {
    href: '/ai_generations/ai_generations-list',
    label: 'Ai generations',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiRobotOutline' in icon ? icon['mdiRobotOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_AI_GENERATIONS'
  },
  {
    href: '/habits/habits-list',
    label: 'Habits',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCheckboxMarkedCircleOutline' in icon ? icon['mdiCheckboxMarkedCircleOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HABITS'
  },
  {
    href: '/habit_logs/habit_logs-list',
    label: 'Habit logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalendarCheck' in icon ? icon['mdiCalendarCheck' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HABIT_LOGS'
  },
  {
    href: '/habit_challenges/habit_challenges-list',
    label: 'Habit challenges',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTrophyOutline' in icon ? icon['mdiTrophyOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HABIT_CHALLENGES'
  },
  {
    href: '/library_articles/library_articles-list',
    label: 'Library articles',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiLibrary' in icon ? icon['mdiLibrary' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_LIBRARY_ARTICLES'
  },
  {
    href: '/saved_articles/saved_articles-list',
    label: 'Saved articles',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBookmark' in icon ? icon['mdiBookmark' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SAVED_ARTICLES'
  },
  {
    href: '/glossary_terms/glossary_terms-list',
    label: 'Glossary terms',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAlphabetical' in icon ? icon['mdiAlphabetical' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_GLOSSARY_TERMS'
  },
  {
    href: '/health_vault_documents/health_vault_documents-list',
    label: 'Health vault documents',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiLock' in icon ? icon['mdiLock' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HEALTH_VAULT_DOCUMENTS'
  },
  {
    href: '/emergency_medical_cards/emergency_medical_cards-list',
    label: 'Emergency medical cards',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCardAccountDetails' in icon ? icon['mdiCardAccountDetails' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_EMERGENCY_MEDICAL_CARDS'
  },
  {
    href: '/advance_directives/advance_directives-list',
    label: 'Advance directives',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFileLock' in icon ? icon['mdiFileLock' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_ADVANCE_DIRECTIVES'
  },
  {
    href: '/insurance_policies/insurance_policies-list',
    label: 'Insurance policies',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiShieldAccount' in icon ? icon['mdiShieldAccount' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_INSURANCE_POLICIES'
  },
  {
    href: '/family_groups/family_groups-list',
    label: 'Family groups',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHomeAccount' in icon ? icon['mdiHomeAccount' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FAMILY_GROUPS'
  },
  {
    href: '/family_members/family_members-list',
    label: 'Family members',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAccountMultiple' in icon ? icon['mdiAccountMultiple' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FAMILY_MEMBERS'
  },
  {
    href: '/sharing_permissions/sharing_permissions-list',
    label: 'Sharing permissions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiShareVariant' in icon ? icon['mdiShareVariant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SHARING_PERMISSIONS'
  },
  {
    href: '/mood_logs/mood_logs-list',
    label: 'Mood logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiEmoticonHappyOutline' in icon ? icon['mdiEmoticonHappyOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MOOD_LOGS'
  },
  {
    href: '/mental_assessments/mental_assessments-list',
    label: 'Mental assessments',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiClipboardPulse' in icon ? icon['mdiClipboardPulse' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MENTAL_ASSESSMENTS'
  },
  {
    href: '/journal_entries/journal_entries-list',
    label: 'Journal entries',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiNotebook' in icon ? icon['mdiNotebook' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_JOURNAL_ENTRIES'
  },
  {
    href: '/breathing_sessions/breathing_sessions-list',
    label: 'Breathing sessions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiMeditation' in icon ? icon['mdiMeditation' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_BREATHING_SESSIONS'
  },
  {
    href: '/stress_logs/stress_logs-list',
    label: 'Stress logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiWeatherLightning' in icon ? icon['mdiWeatherLightning' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_STRESS_LOGS'
  },
  {
    href: '/cognitive_tests/cognitive_tests-list',
    label: 'Cognitive tests',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBrain' in icon ? icon['mdiBrain' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_COGNITIVE_TESTS'
  },
  {
    href: '/sleep_logs/sleep_logs-list',
    label: 'Sleep logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiSleep' in icon ? icon['mdiSleep' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SLEEP_LOGS'
  },
  {
    href: '/sleep_environment_logs/sleep_environment_logs-list',
    label: 'Sleep environment logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHomeThermometer' in icon ? icon['mdiHomeThermometer' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SLEEP_ENVIRONMENT_LOGS'
  },
  {
    href: '/nap_logs/nap_logs-list',
    label: 'Nap logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiPowerSleep' in icon ? icon['mdiPowerSleep' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_NAP_LOGS'
  },
  {
    href: '/menstrual_cycles/menstrual_cycles-list',
    label: 'Menstrual cycles',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCalendarHeart' in icon ? icon['mdiCalendarHeart' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MENSTRUAL_CYCLES'
  },
  {
    href: '/menstrual_day_logs/menstrual_day_logs-list',
    label: 'Menstrual day logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiWaterOutline' in icon ? icon['mdiWaterOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MENSTRUAL_DAY_LOGS'
  },
  {
    href: '/fertility_logs/fertility_logs-list',
    label: 'Fertility logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBabyFaceOutline' in icon ? icon['mdiBabyFaceOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FERTILITY_LOGS'
  },
  {
    href: '/pregnancies/pregnancies-list',
    label: 'Pregnancies',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHumanPregnant' in icon ? icon['mdiHumanPregnant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_PREGNANCIES'
  },
  {
    href: '/pregnancy_symptom_logs/pregnancy_symptom_logs-list',
    label: 'Pregnancy symptom logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHeartOutline' in icon ? icon['mdiHeartOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_PREGNANCY_SYMPTOM_LOGS'
  },
  {
    href: '/breastfeeding_logs/breastfeeding_logs-list',
    label: 'Breastfeeding logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBabyBottleOutline' in icon ? icon['mdiBabyBottleOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_BREASTFEEDING_LOGS'
  },
  {
    href: '/formula_feeding_logs/formula_feeding_logs-list',
    label: 'Formula feeding logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBottleSodaOutline' in icon ? icon['mdiBottleSodaOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_FORMULA_FEEDING_LOGS'
  },
  {
    href: '/baby_metrics/baby_metrics-list',
    label: 'Baby metrics',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiChartBellCurve' in icon ? icon['mdiChartBellCurve' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_BABY_METRICS'
  },
  {
    href: '/epds_assessments/epds_assessments-list',
    label: 'Epds assessments',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiClipboardTextOutline' in icon ? icon['mdiClipboardTextOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_EPDS_ASSESSMENTS'
  },
  {
    href: '/kick_counts/kick_counts-list',
    label: 'Kick counts',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHandTap' in icon ? icon['mdiHandTap' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_KICK_COUNTS'
  },
  {
    href: '/contraction_sessions/contraction_sessions-list',
    label: 'Contraction sessions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTimerOutline' in icon ? icon['mdiTimerOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_CONTRACTION_SESSIONS'
  },
  {
    href: '/contractions/contractions-list',
    label: 'Contractions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiChartTimelineVariant' in icon ? icon['mdiChartTimelineVariant' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_CONTRACTIONS'
  },
  {
    href: '/menopause_symptom_logs/menopause_symptom_logs-list',
    label: 'Menopause symptom logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFire' in icon ? icon['mdiFire' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MENOPAUSE_SYMPTOM_LOGS'
  },
  {
    href: '/male_reproductive_logs/male_reproductive_logs-list',
    label: 'Male reproductive logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiGenderMale' in icon ? icon['mdiGenderMale' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MALE_REPRODUCTIVE_LOGS'
  },
  {
    href: '/semen_analyses/semen_analyses-list',
    label: 'Semen analyses',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiMicroscope' in icon ? icon['mdiMicroscope' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SEMEN_ANALYSES'
  },
  {
    href: '/sti_tests/sti_tests-list',
    label: 'Sti tests',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiShieldCheck' in icon ? icon['mdiShieldCheck' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_STI_TESTS'
  },
  {
    href: '/contraception_logs/contraception_logs-list',
    label: 'Contraception logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiShieldOutline' in icon ? icon['mdiShieldOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_CONTRACEPTION_LOGS'
  },
  {
    href: '/libido_logs/libido_logs-list',
    label: 'Libido logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHeartPlusOutline' in icon ? icon['mdiHeartPlusOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_LIBIDO_LOGS'
  },
  {
    href: '/sexual_activity_logs/sexual_activity_logs-list',
    label: 'Sexual activity logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiLockOutline' in icon ? icon['mdiLockOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SEXUAL_ACTIVITY_LOGS'
  },
  {
    href: '/skin_care_logs/skin_care_logs-list',
    label: 'Skin care logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFaceManShimmer' in icon ? icon['mdiFaceManShimmer' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SKIN_CARE_LOGS'
  },
  {
    href: '/sun_exposure_logs/sun_exposure_logs-list',
    label: 'Sun exposure logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiWeatherSunny' in icon ? icon['mdiWeatherSunny' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_SUN_EXPOSURE_LOGS'
  },
  {
    href: '/mole_lesion_logs/mole_lesion_logs-list',
    label: 'Mole lesion logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiMolecule' in icon ? icon['mdiMolecule' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_MOLE_LESION_LOGS'
  },
  {
    href: '/oral_hygiene_logs/oral_hygiene_logs-list',
    label: 'Oral hygiene logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiToothOutline' in icon ? icon['mdiToothOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_ORAL_HYGIENE_LOGS'
  },
  {
    href: '/dental_records/dental_records-list',
    label: 'Dental records',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiTooth' in icon ? icon['mdiTooth' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_DENTAL_RECORDS'
  },
  {
    href: '/dental_symptoms/dental_symptoms-list',
    label: 'Dental symptoms',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiAlert' in icon ? icon['mdiAlert' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_DENTAL_SYMPTOMS'
  },
  {
    href: '/vision_prescriptions/vision_prescriptions-list',
    label: 'Vision prescriptions',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiEyeOutline' in icon ? icon['mdiEyeOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_VISION_PRESCRIPTIONS'
  },
  {
    href: '/eye_symptom_logs/eye_symptom_logs-list',
    label: 'Eye symptom logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiMonitorEye' in icon ? icon['mdiMonitorEye' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_EYE_SYMPTOM_LOGS'
  },
  {
    href: '/hearing_test_logs/hearing_test_logs-list',
    label: 'Hearing test logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiEarHearing' in icon ? icon['mdiEarHearing' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_HEARING_TEST_LOGS'
  },
  {
    href: '/tinnitus_logs/tinnitus_logs-list',
    label: 'Tinnitus logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiEarHearingOff' in icon ? icon['mdiEarHearingOff' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_TINNITUS_LOGS'
  },
  {
    href: '/noise_exposure_logs/noise_exposure_logs-list',
    label: 'Noise exposure logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiVolumeHigh' in icon ? icon['mdiVolumeHigh' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_NOISE_EXPOSURE_LOGS'
  },
  {
    href: '/pain_logs/pain_logs-list',
    label: 'Pain logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiHumanCane' in icon ? icon['mdiHumanCane' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_PAIN_LOGS'
  },
  {
    href: '/injuries/injuries-list',
    label: 'Injuries',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBandage' in icon ? icon['mdiBandage' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_INJURIES'
  },
  {
    href: '/physio_exercises/physio_exercises-list',
    label: 'Physio exercises',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiArmFlexOutline' in icon ? icon['mdiArmFlexOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_PHYSIO_EXERCISES'
  },
  {
    href: '/ergonomics_logs/ergonomics_logs-list',
    label: 'Ergonomics logs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiDesk' in icon ? icon['mdiDesk' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_ERGONOMICS_LOGS'
  },
  {
    href: '/notifications/notifications-list',
    label: 'Notifications',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiBellOutline' in icon ? icon['mdiBellOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_NOTIFICATIONS'
  },
  {
    href: '/export_jobs/export_jobs-list',
    label: 'Export jobs',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiFileExport' in icon ? icon['mdiFileExport' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_EXPORT_JOBS'
  },
  {
    href: '/app_settings/app_settings-list',
    label: 'App settings',
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore
    icon: 'mdiCogOutline' in icon ? icon['mdiCogOutline' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
    permissions: 'READ_APP_SETTINGS'
  },
  {
    href: '/profile',
    label: 'Profile',
    icon: icon.mdiAccountCircle,
  },

 
  {
    href: '/api-docs',
    target: '_blank',
    label: 'Swagger API',
    icon: icon.mdiFileCode,
    permissions: 'READ_API_DOCS'
  },
]

export default menuAside
