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

export default function createRoute({ path, icon, label, order, scopes }) {
  return {
    component: () => import('@/recruits/layouts/basic-list-layout.vue'),
    path: '',
    children: [
      {
        name: 'for-cancel-registration',
        components: {
          listButtons: () =>
            import(
              '@/recruits/components/for-cancel-registration/listButtons.vue'
            ),
          default: () =>
            lazyLoadView(
              import('@/recruits/components/for-cancel-registration')
            ),
        },
        path,
        meta: {
          icon,
          label,
          place: 'drawer',
          order,
          scopes,
          storeCountGetters: 'menuCounters/removal',
        },
      },
    ],
  };
}
