import Layout from '@/layout'

export default {
  path: '/incident-management',
  redirect: '/incident-management/charger-connectivity',
  component: Layout,
  meta: {
    title: 'Incident Management',
    icon: 'error-table',
    affix: true
  },
  alwaysShow: true,
  children: [
    {
      path: '/incident-management/charger-connectivity',
      component: () => import('@/views/incident/connectivity'),
      name: 'charger-connectivity',
      meta: {
        title: 'Charger Connectivity',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        breadcrumb: true
      }
    },
    {
      path: '/incident-management/charger-connectivity/info/:id',
      component: () => import('@/views/incident/info'),
      name: 'error-table',
      meta: {
        title: 'View Details',
        icon: 'sidebar-submenu-item',
        activeMenu: '/incident-management/charger-connectivity',
        hidden: true
      }
    },
    {
      path: '/incident-management/error-table',
      component: () => import('@/views/incident/error_table'),
      name: 'error-table',
      meta: {
        title: 'Error Table',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        breadcrumb: true
      }
    }
  ]
}