/** * External dependencies */ import { Button, ButtonGroup, Modal } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; /** * Internal dependencies */ import sanitizeHTML from '../../../lib/sanitize-html'; import { Subscription } from '../my-subscriptions/types'; import { WOO_CONNECT_PLUGIN_DOWNLOAD_URL, WP_ADMIN_PLUGIN_LIST_URL, } from '../constants'; import { getAdminSetting } from '../../../utils/admin-settings'; interface ConnectProps { subscription: Subscription; onClose: () => void; } export default function InstallWooConnectModal( props: ConnectProps ) { const wccomSettings = getAdminSetting( 'wccomHelper', {} ); if ( ! wccomSettings?.wooUpdateManagerInstalled ) { return (

install the WooCommerce.com Update Manager extension. Alternatively, you can download and install it manually.', 'woocommerce' ), props.subscription.version ) ) } />

); } if ( ! wccomSettings?.wooUpdateManagerActive ) { return (

activate the WooCommerce.com Update Manager extension.', 'woocommerce' ), props.subscription.version ) ) } />

); } return null; }