function mapDispatchToProps (dispatch) {
  return {
    getPostById: (idPost) => dispatch(fetchPostById(idPost)),
    removePost: (post) => dispatch(fetchRemovePost(post)),
    getComments: (idPost) => dispatch(fetchComments(idPost)),
    addComment: (data) => dispatch(fetchAddComment(data)),
    removeComment: (comment) => dispatch(fetchRemoveComment(comment)),
    updateNumberComment: (idPost, typeUpdate) => dispatch(updateNumberComment(idPost, typeUpdate)),
    votePost: (idPost, option, typeVote) => dispatch(fetchUpDownVotePost(idPost, option, typeVote)),
    voteComment: (idComment, option) => dispatch(fetchUpDownVoteComment(idComment, option))
  }
}
/**
 * @description Bind dispatch to your action creators before they ever hit your component
 * @param {function} dispatch
 * @return {Object}
 */
@description Bind dispatch to your action creators before they ever hit your component
@param {function} dispatch
@return {Object}
@description Bind dispatch to your action creators before they ever hit your component @param { function } dispatch @return { Object }
function mapDispatchToProps (dispatch) {
  return {
    getPostById: (idPost) => dispatch(fetchPostById(idPost)),
    removePost: (post) => dispatch(fetchRemovePost(post)),
    getComments: (idPost) => dispatch(fetchComments(idPost)),
    addComment: (data) => dispatch(fetchAddComment(data)),
    removeComment: (comment) => dispatch(fetchRemoveComment(comment)),
    updateNumberComment: (idPost, typeUpdate) => dispatch(updateNumberComment(idPost, typeUpdate)),
    votePost: (idPost, option, typeVote) => dispatch(fetchUpDownVotePost(idPost, option, typeVote)),
    voteComment: (idComment, option) => dispatch(fetchUpDownVoteComment(idComment, option))
  }
}
function mapDispatchToProps ( dispatch ) { return { getPostById : ( idPost ) => dispatch ( fetchPostById ( idPost ) ) , removePost : ( post ) => dispatch ( fetchRemovePost ( post ) ) , getComments : ( idPost ) => dispatch ( fetchComments ( idPost ) ) , addComment : ( data ) => dispatch ( fetchAddComment ( data ) ) , removeComment : ( comment ) => dispatch ( fetchRemoveComment ( comment ) ) , updateNumberComment : ( idPost , typeUpdate ) => dispatch ( updateNumberComment ( idPost , typeUpdate ) ) , votePost : ( idPost , option , typeVote ) => dispatch ( fetchUpDownVotePost ( idPost , option , typeVote ) ) , voteComment : ( idComment , option ) => dispatch ( fetchUpDownVoteComment ( idComment , option ) ) } }
@description Bind dispatch to your action creators before they ever hit your component
 @param {function} dispatch
 @return {Object}
@description Bind dispatch to your action creators before they ever hit your component @param { function } dispatch @return { Object }