bigbuffet-rw/app/soapbox/containers/poll_container.js
2020-05-28 17:56:55 -05:00

8 lines
226 B
JavaScript

import { connect } from 'react-redux';
import Poll from 'soapbox/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);