import { History } from 'history' ; import { RouterStore } from './RouterStore' ; import { GlobalStateStore } from './GlobalStateStore' ; import { STORE_ROUTER , GLOBAL_STATE } from 'app/constants' ; /**
 * where stores are created, including the routerStore
 */ export function createStores ( history ) { const routerStore = new RouterStore ( history ) ; const globalStateStore = new GlobalStateStore ( ) ; return { [ STORE_ROUTER ] : routerStore , [ GLOBAL_STATE ] : globalStateStore , } ; }