import { recordTracksEvent } from '@automattic/calypso-analytics'; import { Hooray, SubTitle, Title } from '@automattic/onboarding'; import { useI18n } from '@wordpress/react-i18n'; import React, { useEffect } from 'react'; import { ImportJob } from '../../types'; import DoneButton from '../done-button'; interface Props { job: ImportJob; siteId: number; siteSlug: string; resetImport: ( siteId: number, importerId: string ) => void; buttonLabel?: string; onSiteViewClick?: () => void; } const CompleteScreen: React.FunctionComponent< Props > = ( props ) => { const { __ } = useI18n(); const { job, siteId, buttonLabel, resetImport, onSiteViewClick } = props; useEffect( () => { recordTracksEvent( 'calypso_site_importer_start_import_success' ); }, [] ); return (
{ __( 'Hooray!' ) } { __( 'Congratulations. Your content was successfully imported.' ) }
); }; export default CompleteScreen;