import { connect } from 'react-redux'; import { sendParticipation } from '../../redux/actions/participate'; import { toggleParticipated } from '../../redux/actions/ui'; import CVBody from './CVBody'; const mapStateToProps = state => { return { pending: state.ui.pending, participated: state.ui.participated }; }; const CVBodyContainer = connect( mapStateToProps, { sendParticipation, toggleParticipated } )(CVBody); export default CVBodyContainer;