bigbuffet-rw/app/soapbox/containers/poll_container.js
2022-01-02 20:43:53 +00:00

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