; // This parameter is useful to redirect back from checkout page and select the retention period // the customer previously selected. const retention = Number.isInteger( Number( context.query.retention ) ) ? Number( context.query.retention ) : undefined; // It means that the customer has purchased storage const storagePurchased = Boolean( context.query.storage_purchased ); context.primary = (
{ config.isEnabled( 'jetpack/backup-retention-settings' ) ? ( } falseComponent={ null } loadingComponent={ } // Let's use the same placeholder for now /> ) : null } } loadingComponent={ } /> } loadingComponent={ } /> } falseComponent={ null } loadingComponent={ } /> { config.isEnabled( 'jetpack/backup-schedule-setting' ) ? ( } falseComponent={ null } loadingComponent={ } /> ) : null }
); next(); }; export const showNotAuthorizedForNonAdmins: Callback = ( context, next ) => { context.primary = ( } /> ); next(); }; export const disconnectSite: Callback = ( context, next ) => { context.primary = ( ); next(); }; export const disconnectSiteConfirm: Callback = ( context, next ) => { const { reason, type, text } = context.query; const dashboardHref = dashboardPath(); context.primary = ( ); next(); };