woocommerce/plugins/woocommerce-admin/client/homescreen/mobile-app-modal/pages/EmailSentPage.tsx

57 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* External dependencies
*/
import interpolateComponents from '@automattic/interpolate-components';
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
interface EmailSentProps {
returnToSendLinkPage: () => void;
}
export const EmailSentPage: React.FC< EmailSentProps > = ( {
returnToSendLinkPage: returnToSendLinkPage,
} ) => {
return (
<div className="email-sent-modal-body">
<div className="email-sent-illustration"></div>
<div className="email-sent-title">
<h1>{ __( 'Check your email!', 'woocommerce' ) }</h1>
</div>
<div className="email-sent-subheader-spacer">
<div className="email-sent-subheader">
{ __(
'We just sent you the magic link. Open it on your mobile device and follow the instructions.',
'woocommerce'
) }
</div>
</div>
<div className="email-sent-footer">
<div className="email-sent-footer-prompt">
{ __( 'DIDNT GET IT?', 'woocommerce' ) }
</div>
<div className="email-sent-footer-text">
{ interpolateComponents( {
mixedString: __(
'Check your spam/junk email folder or {{ sendAnotherLink /}}.',
'woocommerce'
),
components: {
sendAnotherLink: (
<Button
className="email-sent-send-another-link"
onClick={ () => {
returnToSendLinkPage();
} }
>
{ __( 'send another link', 'woocommerce' ) }
</Button>
),
},
} ) }
</div>
</div>
</div>
);
};