text: import {
    HIDE_MODAL,
    SHOW_MODAL
  } from '../actions/constants'
  
  const initialState = {
    modalType: null,
    modalProps: {}
  }
  
  const modal = (state = initialState, action) => {
    switch (action.type) {
    case SHOW_MODAL:
      return {
        modalType: action.modalType,
        modalProps: action.modalProps
      }
    case HIDE_MODAL:
      return initialState
    default:
      return state
    }
  }
  
  export default modal