text: import { FETCH_PAGE,
      LOADING } from '../actions/types';
  
  const INITIAL_STATE = { loading : true };
  
  export default ( state = INITIAL_STATE, action ) => {
  
      //console.log("action pageReducer", action);
      
      switch (action.type){
          case FETCH_PAGE:
              return {...state, ["loading"]:false, ["pageInfo"]: action.payload.snapshot, ["currentPage"]: action.payload.currentPage };
          case LOADING:
              return {...state, ["loading"] : true };
          default:
              return {...state};
      }
  
  }