import PropTypes from 'prop-types' import React, {PureComponent} from 'react' import Identicon from '../../identicon' export default class ProviderPageContainerContent extends PureComponent { static propTypes = { origin: PropTypes.string.isRequired, selectedIdentity: PropTypes.string.isRequired, siteImage: PropTypes.string, siteTitle: PropTypes.string.isRequired, } static contextTypes = { t: PropTypes.func, }; renderConnectVisual = () => { const { origin, selectedIdentity, siteImage, siteTitle } = this.props return (
{siteImage ? ( ) : ( {siteTitle.charAt(0).toUpperCase()} )}

{siteTitle}

{origin}

{selectedIdentity.name}

) } render () { const { siteTitle } = this.props const { t } = this.context return (

{t('connectRequest')}

{this.renderConnectVisual()}

{t('providerRequest', [siteTitle])}

{t('providerRequestInfo')}
{t('learnMore')}.

) } }