import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { getSoapboxConfig } from 'soapbox/actions/soapbox'; const mapStateToProps = (state, props) => ({ instance: state.get('instance'), soapbox: getSoapboxConfig(state), }); class SiteBanner extends ImmutablePureComponent { render() { const { instance, soapbox } = this.props; const logos = { imgLogo: ({instance.get('title')}), textLogo: (

{instance.get('title')}

), }; return soapbox.getIn(['banner']) ? logos.imgLogo : logos.textLogo; } } export default connect(mapStateToProps)(SiteBanner);