import scopes from '@utils/scopes';
import { lazyLoadView } from '@utils/lazyloadview';
import Vue from 'vue';

const categories = {
  notifications: {
    label: 'notifications.applicationManagement',
    path: 'notifications',
    scopes: scopes.notifications,
  },
};

const routes = [
  {
    children: [
      {
        component: () => import('@components/notifications/index.vue'),
        meta: {
          icon: 'view_quilt',
          label: 'notifications.notificationsConstructor',
          place: 'drawer',
          order: 6,
          showProd: Vue.prototype.$appConfig.isDebugMode === 'true',
        },
        name: 'notifications',
        path: '',
      },
      /*    {
        component: () => import('@components/notifications/create/index.vue'),
        meta: {
          caption: categories.notifications.label,
          // Флаг, который позволяет сделать редирект на степпер, если придёт соответствующий пуш
          hasRedirectToStepper: true,
          icon: 'create',
          label: 'notifications.createApplication',
        },
        name: 'notifications-create',
        path: 'create',
      }, */
    ],
    component: () => lazyLoadView(import('@router/notifications/index.vue')),
    meta: {
      scopes: categories.notifications.scopes,
    },
    path: categories.notifications.path,
  },
];

export default routes;
