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

export default function createRoute({
  path,
  icon,
  label,
  order,
  scopes,
}) {
  return {
    component: () => lazyLoadView(import('@/recruits/layouts/basic-list-layout')),
    path,
    children: [
      {
        name: 'notifications',
        component: () => import('@/recruits/components/notifications'),
        path: 'notification',
        meta: {
          icon,
          label,
          place: 'drawer',
          order,
          scopes,
        },
      },
    ],
  };
}
