/* * External dependencies */ import { __ } from '@wordpress/i18n'; /* * Internal dependencies */ import { Nudge } from '../../../../shared/components/upgrade-nudge'; import useAutosaveAndRedirect from '../../../../shared/use-autosave-and-redirect'; const ConnectPrompt = () => { const checkoutUrl = `${ window?.Jetpack_Editor_Initial_State?.adminUrl }admin.php?page=my-jetpack#/connection`; const { autosaveAndRedirect, isRedirecting } = useAutosaveAndRedirect( checkoutUrl ); const goToCheckoutPage = event => { autosaveAndRedirect( event ); }; return ( ); }; export default ConnectPrompt;