import { WPCOM_FEATURES_BACKUPS } from '@automattic/calypso-products'; import { Card } from '@automattic/components'; import { localize } from 'i18n-calypso'; import { Fragment } from 'react'; import { connect } from 'react-redux'; import CardHeading from 'calypso/components/card-heading'; import siteHasFeature from 'calypso/state/selectors/site-has-feature'; import { getSelectedSiteId } from 'calypso/state/ui/selectors'; const JetpackChecklistHeader = ( { hasBackups, translate } ) => ( { translate( 'My Checklist' ) }
{ translate( "Let's start by securing your site with a few essential security features" ) } { hasBackups && (

{ translate( 'These security features ensure that your site is secured and backed up.' ) }

) }
); export default connect( ( state ) => ( { hasBackups: siteHasFeature( state, getSelectedSiteId( state ), WPCOM_FEATURES_BACKUPS ), } ) )( localize( JetpackChecklistHeader ) );