import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { renderWithTheme } from '@looker/components-test-utils';
export var withRouter = function withRouter(children) {
  var initialEntries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['/'];
  return React.createElement(MemoryRouter, {
    initialEntries: initialEntries
  }, children);
};
export var renderWithRouter = (children, initialEntries, options) => renderWithTheme(withRouter(children, initialEntries), options);
//# sourceMappingURL=router.js.map