import page from '@automattic/calypso-router'; import { useTranslate } from 'i18n-calypso'; import HostingInformation from 'calypso/site-profiler/components/hosting-information'; import { MetricsSection } from 'calypso/site-profiler/components/metrics-section'; import { getTitleTranslateOptions } from 'calypso/site-profiler/utils/get-title-translate-options'; import type { UrlData } from 'calypso/blocks/import/types'; import type { DNS, HostingProvider } from 'calypso/data/site-profiler/types'; interface HostingSectionProps { dns: DNS[]; url?: string; urlData?: UrlData; hostingProvider?: HostingProvider; hostingRef: React.RefObject< HTMLObjectElement >; } export const HostingSection: React.FC< HostingSectionProps > = ( props ) => { const translate = useTranslate(); const { dns = [], url, urlData, hostingProvider, hostingRef } = props; const isWPcom = hostingProvider?.slug?.toLowerCase() === 'automattic'; return ( page( `/setup/site-migration?ref=site-profiler&from=${ url }` ) } ref={ hostingRef } > ); };