import React from 'react' import { createBrowserRouter, RouterProvider } from 'react-router-dom' import { Backdrop, CircularProgress } from '@mui/material' import { ErrorPage } from 'components/pages' const MainPage = React.lazy(() => import('components/pages/MainPage')) const ProjectsPage = React.lazy(() => import('components/pages/ProjectsPage')) const CurriculumPage = React.lazy(() => import('components/pages/CurriculumPage')) const ContactPage = React.lazy(() => import('components/pages/ContactPage')) const Loading = () => ( ) const router = createBrowserRouter([ { path: '/', element: ( }> ), errorElement: , }, { path: '/projects', element: ( }> ), }, { path: '/curriculum', element: ( }> ), }, { path: '/contacts', element: ( }> ), }, ]) const App = () => export default App