text: import initialState from './initialState';
  import { reducer as searchReducer } from './search';
  import { reducer as loginReducer } from './login';
  
  const reducers = [
    searchReducer,
    loginReducer,
  ];
  
  export default function reducer(state = initialState, action) {
    let newState;
    switch (action.type) {
      // Handle cross-topic actions here
      default:
        newState = state;
        break;
    }
    /* istanbul ignore next */
    return reducers.reduce((s, r) => r(s, action), newState);
  }
  