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

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

const routes = [
  {
    children: [
      {
        component: () => import('@components/tickets/index.vue'),
        meta: {
          icon: 'book_online',
          label: categories.tickets.label,
          place: 'drawer',
          order: 20,
          showProd: Vue.prototype.$appConfig.isDebugMode === 'true',
        },
        name: 'tickets',
        path: '',
      },
    ],
    component: () => lazyLoadView(import('@router/tickets/index.vue')),
    meta: {
      scopes: categories.tickets.scopes,
    },
    path: categories.tickets.path,
  },
];

export default routes;
