import BasicLayout from '../layouts/BasicLayout';
import UserLayout from '../layouts/UserLayout';
import BootPage from '../pages/bootpage';
import Login from '../pages/user/login';

export const dyRoutes = routes => {
  const dyRoutes = routes;
  return {
    routes: [
      {
        path: '/user',
        component: UserLayout,
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: Login,
          },
        ],
      },
      {
        path: '/industry',
        component: BootPage,
      },
      {
        path: '/',
        component: BasicLayout,
        routes: [...dyRoutes],
      },
    ],
  };
};
