import classNames from 'classnames'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class PollPreview extends ImmutablePureComponent { static propTypes = { poll: ImmutablePropTypes.map, }; renderOption(option) { const { poll } = this.props; const showResults = poll.get('voted') || poll.get('expired'); return (
  • ); } render() { const { poll } = this.props; if (!poll) { return null; } return (
    ); } }