import type { RouteConfig } from 'vue-router';
import scopes from '@utils/scopes';
import { lazyLoadView } from '@utils/lazyloadview';
import Vue from 'vue';

const routes: RouteConfig[] = [
  {
    children: [
      {
        component: () => import('@components/incidents/index.vue'),
        meta: {
          icon: 'warning_amber',
          label: 'incidents.name',
          place: 'drawer',
          order: 10,
          showProd: Vue.prototype.$appConfig.isDebugMode === 'true',
        },
        name: 'incidents',
        path: '',
      },
    ],
    component: () => lazyLoadView(import('@router/incidents/index.vue')),
    meta: {
      scopes: scopes?.incidents,
    },
    path: 'incidents',
  },
];
export default routes;
