{"size": 791, "ext": "js", "max_stars_repo_path": "client/containers/OtherItems/MyOutfit.js", "max_stars_repo_name": "Kartify-Team/Kartify", "max_stars_repo_stars_event_min_datetime": "2019-12-23T14:39:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-03T20:40:14.000Z", "max_issues_repo_path": "client/containers/OtherItems/MyOutfit.js", "max_issues_repo_name": "Kartify-Team/Kartify", "max_issues_repo_issues_event_min_datetime": "2019-12-10T17:26:43.000Z", "max_issues_repo_issues_event_max_datetime": "2019-12-17T15:15:35.000Z", "max_forks_repo_path": "client/containers/OtherItems/MyOutfit.js", "max_forks_repo_name": "Kartify-Team/Kartify", "max_forks_repo_forks_event_min_datetime": "2019-12-30T16:44:31.000Z", "max_forks_repo_forks_event_max_datetime": "2019-12-31T00:45:18.000Z"}
{"max_stars_count": 5, "max_issues_count": 7, "max_forks_count": 3, "avg_line_length": 32.9583333333, "max_line_length": 81, "alphanum_fraction": 0.7206068268}
import {connect} from 'react-redux';
import MyOutfit from '../../components/OtherItems/MyOutfit/index.jsx';
import { changeProduct } from '../../actions/creators/changeProduct.js';
import { modifyMyOutfit } from '../../actions/dispatchers/changeMyOutfit.js';

const mapStateToProps = (store) => ({
  myOutfit: store.otherItems.myOutfit,
  mainProduct: store.product,
  average:
    store.reviews.ratings === null ? null : store.reviews.ratings.average
});

const mapDispatchToProps = (dispatch) => ({
  changeProduct: (id) => {
    dispatch(changeProduct(id));
  },
  changeMyOutfit: (product, outfit, type) => {
    dispatch(modifyMyOutfit(product, outfit, type));
  }
});

const MyOutfitContainer = connect(mapStateToProps, mapDispatchToProps)(MyOutfit);

export default MyOutfitContainer;