import React from 'react'; import PropTypes from 'prop-types'; import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl } from 'react-intl'; const mapStateToProps = state => { return { siteTitle: state.getIn(['instance', 'title']), me: state.get('me'), }; }; const SignUpPanel = ({ siteTitle, me }) => { if (me) return null; return (
); }; SignUpPanel.propTypes = { siteTitle: PropTypes.string, me: SoapboxPropTypes.me, }; export default injectIntl(connect(mapStateToProps)(SignUpPanel));