function mapStateToProps ({categories}) {
  return {
    categories: Object.keys(categories).map(key => categories[key])
  }
}
/**
 * @description Specify which data from the store you passed to your React component
 * @param {Object} categories
 * @return {Object}
 */
@description Specify which data from the store you passed to your React component
@param {Object} categories
@return {Object}
@description Specify which data from the store you passed to your React component @param { Object } categories @return { Object }
function mapStateToProps ({categories}) {
  return {
    categories: Object.keys(categories).map(key => categories[key])
  }
}
function mapStateToProps ( { categories } ) { return { categories : Object . keys ( categories ) . map ( key => categories [ key ] ) } }
@description Specify which data from the store you passed to your React component
 @param {Object} categories
 @return {Object}
@description Specify which data from the store you passed to your React component @param { Object } categories @return { Object }