import { lazy } from 'react'; import Loadable from 'components/Loadable'; const MainLayout = Loadable(lazy(() => import('layout/MainLayout'))); // render - dashboard const TestMail = Loadable(lazy(() => import('pages/_Test/Mail'))); // ==============================|| MAIN ROUTING ||============================== // const TestRoutes = { path: '/', element: , children: [ { path: 'test/sendMail', element: }, ] }; export default TestRoutes;