import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'gabsocial/components/icon'; import { connect } from 'react-redux'; import { me } from '../../../initial_state'; const mapStateToProps = state => { return { isPro: state.getIn(['accounts', me, 'is_pro']), }; }; export default @connect(mapStateToProps) class PromoPanel extends React.PureComponent { static propTypes = { isPro: PropTypes.bool, }; render() { const { isPro } = this.props; return (
{ !isPro &&
}
) } }