import PropTypes from 'prop-types'; import React, { Component } from 'react'; import SiteIcon from '../../ui/site-icon'; export default class PermissionsConnectHeader extends Component { static propTypes = { icon: PropTypes.string, iconName: PropTypes.string.isRequired, siteOrigin: PropTypes.string.isRequired, headerTitle: PropTypes.node, headerText: PropTypes.string, }; static defaultProps = { icon: null, headerTitle: '', headerText: '', }; renderHeaderIcon() { const { icon, iconName, siteOrigin } = this.props; return (