import AuthProvider from '@/context/AuthContext' import { BrowserRouter as Router, Switch, Route } from 'react-router-dom' import AuthRoute from './AuthRoute' import { routes } from './routes' const RouterView = () => { return ( {routes.map((route) => { const { withAuthority } = route if (withAuthority) { return ( ) } else { return ( ) } })} ) } export default RouterView