text: import { Route, Switch } from 'react-router-dom'
  import routes from './routes'
  
  const RouterOutlet = () => {
      return (
          <Switch>
              {routes.map((route) => (
                  <Route
                      key={route.path}
                      path={route.path}
                      exact={route.exact}
                      component={route.component}
                  />
              ))}
          </Switch>
      )
  }
  
  export default RouterOutlet
  