import { lazy } from 'react';

// project import
import Loadable from 'components/Loadable';
import { Navigate } from "react-router";

const MainLayout = Loadable(lazy(() => import('layout/MainLayout')));

// ==============================|| MAIN ROUTING ||============================== //

const AfterLoginRoutes = {
  path: '/',
  element: <MainLayout />,
  children: [
    {
      path: 'login',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'register',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'registerFrom',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'iamsmart/logincallback',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'iamsmart/loginfallback',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'iamsmart/registrycallback',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'iamsmart/loginFail',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'verify/:verifyCode/:email',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/password',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/password/sent',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/password/verify',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/password/success',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/username',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/username/sent',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/username/verify/:verifyCode/:email',
      element: <Navigate to="/dashboard" />
    },
    {
      path: 'forgot/username/success',
      element: <Navigate to="/dashboard" />
    },
  ]
};

export default AfterLoginRoutes;
