/** * @flow * @file Common Router Navigation Component * @author Box */ import * as React from 'react'; import { MemoryRouter, Router } from 'react-router-dom'; import type { RouterHistory } from 'react-router-dom'; type Props = { children: React.Node, history?: RouterHistory, }; const NavRouter = ({ children, history, ...rest }: Props) => { if (history) { return {children}; } return {children}; }; export default NavRouter;