import Layout from '@/layout'

export default {
  path: '/charge-station-management',
  component: Layout,
  redirect: '/charge-station-management/registered-charge-stations',
  meta: {
    title: 'Charge Station Management',
    icon: 'charge-station-management',
    activeIcon: 'charge-station-management',
    affix: true,
  },
  children: [
    {
      path: '/charge-station-management/registered-charge-stations',
      component: () => import('@/views/charge/RegisteredChargeStations'),
      name: 'registered-charge-stations',
      meta: {
        title: 'Registered Charge Stations',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/charge-station-management/unknown-charge-stations',
      component: () => import('@/views/charge/UnknownChargeStations'),
      name: 'unknown-charge-stations',
      meta: {
        title: 'Unknown Charge Stations',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/charge-station-management/connectors',
      component: () => import('@/views/charge/Connectors'),
      name: 'connectors',
      meta: {
        title: 'Connectors',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/charge-station-management/add-station',
      component: () => import('@/views/charge/AddStation'),
      name: 'add-charge-stations',
      meta: {
        title: 'Add Station',
        activeMenu: '/charge-station-management/registered-charge-stations'
      },
      hidden: true
    },
    {
      path: '/charge-station-management/edit-station/:id',
      component: () => import('@/views/charge/AddStation'),
      name: 'edit-charge-stations',
      meta: {
        title: 'Edit Station',
        activeMenu: '/charge-station-management/registered-charge-stations'
      },
      hidden: true
    }
  ]
}