import React from 'react'; import { Switch, Route } from 'react-router-dom'; const Profile = React.lazy(() => import('../Profile/Profile')); const Feed = React.lazy(() => import('../Feed/Feed')); const Login = React.lazy(() => import('../Login/Login')); const Registration = React.lazy(() => import('../Registration/Registration')); const Home = React.lazy(() => import('../Home/Home')); const Notifications = React.lazy(() => import('../Notifications/Notifications')); const PollCreation = React.lazy(() => import('../PollCreation/PollCreation')); const Router: React.FC = React.memo(() => ( )); export default Router;