bigbuffet-rw/app/soapbox/containers/poll_container.js

11 lines
250 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import { connect } from 'react-redux';
2020-05-28 15:52:07 -07:00
import Poll from 'soapbox/components/poll';
2020-03-27 13:59:38 -07:00
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
me: state.get('me'),
2020-03-27 13:59:38 -07:00
});
2022-01-02 12:43:53 -08:00
2021-11-05 21:29:35 -07:00
export default connect(mapStateToProps)(Poll);