function mapDispatchToProps (dispatch) {
  return {
    getPosts: () => dispatch(fetchPosts(dispatch)),
    removePost: (data) => dispatch(fetchRemovePost(data)),
    votePost: (idPost, option, typeVote) => dispatch(fetchUpDownVotePost(idPost, option, typeVote)),
    sortPost: (posts, typeSort, propertySort) => dispatch(goSortDate(posts, typeSort, propertySort))
  }
}
/**
 * @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 {
    getPosts: () => dispatch(fetchPosts(dispatch)),
    removePost: (data) => dispatch(fetchRemovePost(data)),
    votePost: (idPost, option, typeVote) => dispatch(fetchUpDownVotePost(idPost, option, typeVote)),
    sortPost: (posts, typeSort, propertySort) => dispatch(goSortDate(posts, typeSort, propertySort))
  }
}
function mapDispatchToProps ( dispatch ) { return { getPosts : ( ) => dispatch ( fetchPosts ( dispatch ) ) , removePost : ( data ) => dispatch ( fetchRemovePost ( data ) ) , votePost : ( idPost , option , typeVote ) => dispatch ( fetchUpDownVotePost ( idPost , option , typeVote ) ) , sortPost : ( posts , typeSort , propertySort ) => dispatch ( goSortDate ( posts , typeSort , propertySort ) ) } }
@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 }