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

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

const routes = [
  {
    children: [
      {
        component: () => import('@components/processes/index.vue'),
        meta: {
          // icon: 'all_inbox',
          label: categories.processes.label,
          place: 'drawer',
          scopes: categories.processes.scopes,
        },
        name: 'processes',
        path: '',
      },
      {
        component: () => import('@components/processes/editor/index.vue'),
        name: 'processes-editor',
        path: 'editor',
      },
    ],
    component: () => lazyLoadView(import('@router/processes/index.vue')),
    path: categories.processes.path,
  },
];

export default routes;
