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

const categories = {
  printTemplates: {
    label: 'printTemplates.label',
    path: 'print-templates',
    scopes: scopes.printTemplates,
  },
};

const routes = [
  {
    children: [
      {
        component: () => import('@components/print-templates/index.vue'),
        name: 'print-templates-edit',
        path: 'edit/:serviceDocumentId/:filename',
      },
      {
        component: () => import('@components/print-templates/index.vue'),
        name: 'print-templates-create',
        path: 'create/:serviceDocumentId',
      },
    ],
    component: () => lazyLoadView(import('@router/organizations/index.vue')),
    meta: {
      scopes: categories.printTemplates.scopes,
    },
    path: categories.printTemplates.path,
  },
];

export default routes;
