import { get } from 'lodash'; import PropTypes from 'prop-types'; import { createElement, Component } from 'react'; import { connect } from 'react-redux'; import QueryProductsList from 'calypso/components/data/query-products-list'; import QuerySiteDomains from 'calypso/components/data/query-site-domains'; import QuerySitePlans from 'calypso/components/data/query-site-plans'; import PageViewTracker from 'calypso/lib/analytics/page-view-tracker'; import CalypsoShoppingCartProvider from 'calypso/my-sites/checkout/calypso-shopping-cart-provider'; import { getCurrentUser } from 'calypso/state/current-user/selectors'; import { getProductsList } from 'calypso/state/products-list/selectors'; import { getDomainsBySiteId, hasLoadedSiteDomains, isRequestingSiteDomains, } from 'calypso/state/sites/domains/selectors'; import { getPlansBySite } from 'calypso/state/sites/plans/selectors'; import { getSelectedSite } from 'calypso/state/ui/selectors'; class DomainManagementData extends Component { static propTypes = { analyticsPath: PropTypes.string, analyticsTitle: PropTypes.string, context: PropTypes.object.isRequired, domains: PropTypes.array, isRequestingSiteDomains: PropTypes.bool, needsDns: PropTypes.bool, needsDomains: PropTypes.bool, needsPlans: PropTypes.bool, needsProductsList: PropTypes.bool, productsList: PropTypes.object, selectedDomainName: PropTypes.string, selectedSite: PropTypes.object, sitePlans: PropTypes.object, }; render() { const { needsDomains, needsPlans, needsProductsList, selectedSite } = this.props; return (