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