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

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

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

export default routes;
