// @ts-nocheck
import { createBrowserHistory, History } from 'G:/work/vtx-modals/node_modules/@umijs/runtime';

let options = {
  "basename": "/react-components"
};
if ((<any>window).routerBase) {
  options.basename = (<any>window).routerBase;
}

// remove initial history because of ssr
let history: History = process.env.__IS_SERVER ? null : createBrowserHistory(options);
export const createHistory = (hotReload = false) => {
  if (!hotReload) {
    history = createBrowserHistory(options);
  }

  return history;
};

export { history };
