enquireNowModalReducer.js 358 Bytes
import { TOGGLE_DISPLAY_ENQUIRE_NOW_MODAL } from "../constants/enquireNowModalConstants";

export const displayEnquireNowReducer = (state = { displayEnquireNow: false }, action) => {
  switch (action.type) {
    case TOGGLE_DISPLAY_ENQUIRE_NOW_MODAL:
      return {
        displayEnquireNow: action.payload
      };

    default:
      return state;
  }
};