bigbuffet-rw/app/soapbox/containers/poll_container.js
2021-11-05 23:29:35 -05:00

9 lines
249 B
JavaScript

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