import { Dispatch } from 'react';

// import { SET_CURRENT_PAGE } from '../constants/actionTypes';

const applyMiddleware = (dispatch: Dispatch<any>) => (action: { type: string, payload?: any }) => {
  dispatch(action);

  // if (action.type === SET_CURRENT_PAGE) {
  //   dispatch({type: UPDATE_RENDERING_QUEUE, payload: []});
  // }
};

export default applyMiddleware;
