import page from '@automattic/calypso-router'; import { Card, Button } from '@automattic/components'; import { localize } from 'i18n-calypso'; import { get } from 'lodash'; import PropTypes from 'prop-types'; import { Component } from 'react'; import { connect } from 'react-redux'; import StepWrapper from 'calypso/signup/step-wrapper'; import './style.scss'; class CloneCloningStep extends Component { static propTypes = { flowName: PropTypes.string, goToNextStep: PropTypes.func.isRequired, positionInFlow: PropTypes.number, stepName: PropTypes.string, signupDependencies: PropTypes.object, }; goToActivityLog = () => { const { originSiteSlug } = this.props; page.redirect( `/activity-log/${ originSiteSlug }` ); }; renderStepContent = () => { const { translate } = this.props; return (

{ translate( 'Alrighty, Jetpack is cloning your site. You will be notified when the ' + 'clone process is finished or you can watch the progress in ' + 'real-time on the Activity Log.' ) }

); }; render() { const { flowName, stepName, positionInFlow, originSiteName, translate } = this.props; const headerText = translate( "We're cloning %(originSiteName)s — sit tight!", { args: { originSiteName }, } ); return ( ); } } export default connect( ( state, ownProps ) => { return { originSiteName: get( ownProps, [ 'signupDependencies', 'originSiteName' ], '' ), originSiteSlug: get( ownProps, [ 'signupDependencies', 'originSiteSlug' ], '' ), }; } )( localize( CloneCloningStep ) );