const intialState = {
  ImageClickedInfo: {
    ImageClickedCount:0
  },
};

const clearState = {
  ImageClickedInfo: {
    ImageClickedCount:0
  },
};

export default (state = intialState, action) => {
  switch (action.type) {
    case "IMAGE_CLICKED_COUNT":
      return { ...state, ImageClickedInfo: action.payload };
    case "CLEAR_IMAGE_CLICKED_COUNT_REDUX":
      return clearState;
    default:
      return state;
  }
};
