/** * External dependencies */ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import IntegrationCard from '../../blocks/contact-form/components/jetpack-integrations-modal/integration-card'; import CreativeMailIcon from '../../icons/creative-mail'; /** * Types */ import type { SingleIntegrationCardProps, IntegrationCardData } from '../../types'; const CreativeMailDashboardCard = ( { isExpanded, onToggle, data, refreshStatus, borderBottom = true, }: SingleIntegrationCardProps ) => { const { settingsUrl = '' } = data || {}; const cardData: IntegrationCardData = { ...data, showHeaderToggle: false, // Always off for dashboard isLoading: ! data || typeof data.isInstalled === 'undefined', refreshStatus, trackEventName: 'jetpack_forms_upsell_creative_mail_click', notInstalledMessage: __( 'To start sending email campaigns, install the Creative Mail plugin.', 'jetpack-forms' ), notActivatedMessage: __( 'Creative Mail is installed. To start sending email campaigns, simply activate the plugin.', 'jetpack-forms' ), }; return ( } isExpanded={ isExpanded } onToggle={ onToggle } cardData={ cardData } borderBottom={ borderBottom } >

{ __( "You're all setup for email marketing with Creative Mail.", 'jetpack-forms' ) }

); }; export default CreativeMailDashboardCard;