import { expansionMenuItem } from './utils';

export default function createRoute({
  path,
  icon,
  label,
  order,
}) {
  return expansionMenuItem({
    path,
    label,
    icon,
    order,
    children: [
      {
        name: 'conscription-import',
        path: 'import',
        component: () => import('@/recruits/components/conscription/import'),
        meta: {
          place: 'drawer',
          label: 'Загрузить данные',
        },
      },
      // {
      //   path: 'list',
      //   component: () => import('@/recruits/layouts/basic-list-layout.vue'),
      //   children: [
      //     {
      //       name: 'conscription-list',
      //       path: '',
      //       components: {
      //         listButtons: () =>
      //           import('@/recruits/components/conscription/listButtons.vue'),
      //         default: () => import('@/recruits/components/conscription'),
      //       },
      //       meta: {
      //         place: 'drawer',
      //         label: 'Граждане, подлежащие призыву',
      //       },
      //     },
      //   ],
      // },
    ],
  });
}
