function mapDispatchToProps (dispatch) {
  return {
    addPost: (post) => dispatch(fetchAddPost(post)),
    getPostById: (idPost) => dispatch(fetchPostById(idPost)),
    editPost: (post) => dispatch(fetchEditPost(post)),
    getCategories: () => dispatch(fetchCategories(dispatch))
  }
}
/**
 * @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 {
    addPost: (post) => dispatch(fetchAddPost(post)),
    getPostById: (idPost) => dispatch(fetchPostById(idPost)),
    editPost: (post) => dispatch(fetchEditPost(post)),
    getCategories: () => dispatch(fetchCategories(dispatch))
  }
}
function mapDispatchToProps ( dispatch ) { return { addPost : ( post ) => dispatch ( fetchAddPost ( post ) ) , getPostById : ( idPost ) => dispatch ( fetchPostById ( idPost ) ) , editPost : ( post ) => dispatch ( fetchEditPost ( post ) ) , getCategories : ( ) => dispatch ( fetchCategories ( dispatch ) ) } }
@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 }