text: const { bindActionCreators } = require('redux')
  const { wrapMapToPropsConstant, wrapMapToPropsFunc } = require('./wrapMapToProps')
  
  function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
    return (typeof mapDispatchToProps === 'function')
      ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps')
      : undefined
  }
  
  function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
    return (!mapDispatchToProps)
      ? wrapMapToPropsConstant(dispatch => ({ dispatch }))
      : undefined
  }
  
  function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
    return (mapDispatchToProps && typeof mapDispatchToProps === 'object')
      ? wrapMapToPropsConstant(dispatch => bindActionCreators(mapDispatchToProps, dispatch))
      : undefined
  }
  
  module.exports = [
    whenMapDispatchToPropsIsFunction,
    whenMapDispatchToPropsIsMissing,
    whenMapDispatchToPropsIsObject
  ]
  