about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/containers/poll_container.js
blob: cd7216de7a579d3eb95058a3785863380510dcea (plain) (blame)
1
2
3
4
5
6
7
8
import { connect } from 'react-redux';
import Poll from 'mastodon/components/poll';

const mapStateToProps = (state, { pollId }) => ({
  poll: state.getIn(['polls', pollId]),
});

export default connect(mapStateToProps)(Poll);