import React from 'react';
import { Switch, BrowserRouter } from 'react-router-dom'
import NavigationGuards from './navigationGuards'
import RouterConfig from './config'

const router = () => {
    return (
        <BrowserRouter>
            <Switch>
                <NavigationGuards routerConfig={RouterConfig} />
            </Switch>
        </BrowserRouter>
    )
}

export default router