2020-03-27 13:59:38 -07:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
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]),
|
2021-10-24 05:03:42 -07:00
|
|
|
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);
|