import { addQueryArgs } from '@wordpress/url'; import { useTranslate } from 'i18n-calypso'; import EmailVerificationBanner from 'calypso/me/email-verification-banner'; const SubscribeVerificationNudge: React.FC = () => { const translate = useTranslate(); const reloadLink = addQueryArgs( '/reader', { reloadSubscriptionOnboarding: 'true' } ); return ( window.location.replace( reloadLink ) } customDescription={ translate( 'Verifying your email helps you secure your WordPress.com account and enables key features such as subscribing to sites. If necessary, please {{link}}click here{{/link}} to reload when complete.', { components: { link: ( { e.preventDefault(); window.location.replace( reloadLink ); } } /> ), }, } ) } /> ); }; export default SubscribeVerificationNudge;