import Layout from '@/layout'

export default {
  path: '/notification-management',
  redirect: '/notification-management/in-app-notification',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: 'Notification Management',
    icon: 'notification',
    activeIcon: 'notification-active',
    affix: true
  },
  children: [
    {
      path: '/notification-management/in-app-notification',
      component: () => import('@/views/notification/index'),
      name: 'notification',
      meta: {
        title: 'In-App Notification',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/notification-management/email-notification',
      component: () => import('@/views/notification/index'),
      name: 'email-notification',
      meta: {
        title: 'Email Notification',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/notification-management/in-app-notification/add',
      component: () => import('@/views/notification/add'),
      name: 'notification-add',
      meta: {
        title: 'Add Notification',
        activeMenu: '/notification-management/in-app-notification'
      }
    },
    {
      path: '/notification-management/in-app-notification/:id',
      component: () => import('@/views/notification/add'),
      name: 'notification-add',
      meta: {
        title: 'View Notification',
        activeMenu: '/notification-management/in-app-notification'
      }
    }
  ]
}