bigbuffet-rw/app/soapbox/containers/poll_container.js
2022-03-10 16:30:42 -06:00

10 lines
228 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);