import React, { Suspense } from "react";
import { Switch } from "react-router-dom";
import ProtectedRoute from './components/common/protectedRoute';
import config from './configs/routerConfig';
import Header from './components/public/Header';
import Spinner from './components/common/spinner';
const router = props => (
}>
{config.map(route =>
)}
)
export default router;
// class Router extends React.Component {
// render() {
// const { user, tokenAuth } = this.props;
// // TODO: add footer
// return (
//
//
//
}>
//
// {config.map(route =>
//
// )}
//
//
//
// )
// }
// }
// const mapStateToProps = state => ({
// user: state.signIn
// })
// // const mapDispatchToProps = dispatch => bindActionCreators({ tokenAuth }, dispatch);
// export default withRouter(connect(mapStateToProps, null)(Router));
// >>>>>>> new_Sveta