{"size": 569, "ext": "js", "max_stars_repo_path": "src/pages/checkout/checkoutContainer.js", "max_stars_repo_name": "thiagobraga/lodo-records", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/pages/checkout/checkoutContainer.js", "max_issues_repo_name": "thiagobraga/lodo-records", "max_issues_repo_issues_event_min_datetime": "2021-02-15T15:01:13.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-15T15:01:13.000Z", "max_forks_repo_path": "src/pages/checkout/checkoutContainer.js", "max_forks_repo_name": "thiagobraga/lodo-records", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 33.4705882353, "max_line_length": 69, "alphanum_fraction": 0.7539543058}
import { connect } from 'react-redux'
import { getCheckoutUrl } from '../../redux/action/checkoutAction'
import { getCartByUserId } from '../../redux/action/cartAction'
import Checkout from './Checkout'

const mapStoreToProps = state => ({
  cart:state.cart.cart,
  url:state.checkout.approval_url,
  name:state.token.user_token.user_name
})
const mapDispatchToProps = dispatch => ({
  getCheckoutUrl:(cartId)=>dispatch(getCheckoutUrl(cartId)),
  getCartByUserId:()=>dispatch(getCartByUserId())
})

export default connect(mapStoreToProps, mapDispatchToProps)(Checkout)
