import * as React from 'react';
import { Route, Switch } from 'react-router';
import { BrowserRouter } from 'react-router-dom';
import { toast } from 'react-toastify';
import UserRoutes from "./routes/userRoutes";

//export default class App extends React.Component {
//	static displayName = App.name;

//	render() {
//		return (
//			<BrowserRouter>
//				<Switch>
//					<Route path="/" component={UserRoutes} />
//				</Switch>
//			</BrowserRouter>
//		);
//	}
//}

toast.configure();
const App = () => {
	return (
		<BrowserRouter>
			<Switch>
				<Route path="/" component={UserRoutes} />
			</Switch>
		</BrowserRouter>
	);
}

export default App;