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: 'registered',
        components: {
          listButtons: () =>
            import('@/recruits/components/registered/listButtons.vue'),
          default: () => lazyLoadView(import('@/recruits/components/registered')),
        },
        path,
        meta: {
          icon,
          label,
          place: 'drawer',
          order,
          scopes,
        },
      },
    ],
  };
}
