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

const categories = {
  userTasks: {
    label: 'userTask.label',
    path: 'user-tasks',
    scopes: scopes.userTasks,
  },
};

const routes = [
  {
    children: [
      {
        component: () => import('@components/user-tasks/index.vue'),
        meta: {
          // icon: 'all_inbox',
          label: categories.userTasks.label,
          place: 'drawer',
          storeCountGetters: 'wf/userTasks/count',
          storeCountDispatch: 'wf/userTasks/dispatchCountTasks',
          scopes: categories.userTasks.scopes,
        },
        name: 'user-tasks',
        path: '',
      },
    ],
    component: () => lazyLoadView(import('@router/user-tasks/index.vue')),
    path: categories.userTasks.path,
  },
];

export default routes;
