import createHistory from 'history/createHashHistory' ; import { combineReducers } from 'redux' ; import { connectRouter } from 'connected-react-router' ; import { robotReducer } from './robot' ; import { robotApiReducer } from './robot-api/reducer' ; import { robotAdminReducer } from './robot-admin/reducer' ; import { robotControlsReducer } from './robot-controls/reducer' ; import { robotSettingsReducer } from './robot-settings/reducer' ; import { buildrootReducer } from './buildroot/reducer' ; import { pipettesReducer } from './pipettes/reducer' ; import { modulesReducer } from './modules/reducer' ; import { networkingReducer } from './networking/reducer' ; import { shellReducer } from './shell/reducer' ; import { configReducer } from './config/reducer' ; import { discoveryReducer } from './discovery/reducer' ; import { protocolReducer } from './protocol/reducer' ; import { customLabwareReducer } from './custom-labware/reducer' ; import { systemInfoReducer } from './system-info/reducer' ; import { alertsReducer } from './alerts/reducer' ; import { sessionReducer } from './sessions/reducer' ; import { calibrationReducer } from './calibration/reducer' ; import type { Reducer } from 'redux' ; import type { State , Action } from './types' ; export const history = createHistory < any > ( ) ; export const rootReducer = combineReducers < State , Action > ( { robot : robotReducer , robotApi : robotApiReducer , robotAdmin : robotAdminReducer , robotControls : robotControlsReducer , robotSettings : robotSettingsReducer , buildroot : buildrootReducer , pipettes : pipettesReducer , modules : modulesReducer , networking : networkingReducer , config : configReducer , discovery : discoveryReducer , labware : customLabwareReducer , protocol : protocolReducer , shell : shellReducer , systemInfo : systemInfoReducer , alerts : alertsReducer , sessions : sessionReducer , calibration : calibrationReducer , router : connectRouter < State [ 'router' ] > ( history ) as Reducer < State [ 'router' ] , Action > , } ) ;