import { CompactCard, Gridicon } from '@automattic/components'; import PropTypes from 'prop-types'; import { Component } from 'react'; import { connect } from 'react-redux'; import Site from 'calypso/blocks/site'; import SitePlaceholder from 'calypso/blocks/site/placeholder'; import QuerySites from 'calypso/components/data/query-sites'; import { getSite } from 'calypso/state/sites/selectors'; import { isTemporarySitePurchase } from '../utils'; import './header.scss'; class PurchaseSiteHeader extends Component { static propTypes = { isPlaceholder: PropTypes.bool, siteId: PropTypes.number, name: PropTypes.string, purchase: PropTypes.object, }; // Disconnected sites can't render the `Site` component, but there can be // purchases from disconnected sites. Here we spoof the Site header. renderFauxSite() { const { name, purchase } = this.props; /* eslint-disable wpcalypso/jsx-classname-namespace */ return (