import { Text } from '@automattic/jetpack-components'; import { ExternalLink } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import styles from './style.module.scss'; import { ReviewRequestBaseProps } from './types'; import type React from 'react'; const ReviewRequest: React.FC< ReviewRequestBaseProps > = ( { cta, href, onClick, requestReason, reviewText, dismissedReview, dismissMessage, } ) => { if ( dismissedReview || requestReason === '' ) { return <>; } return ( <>
{ reviewText } { cta }
{ /* eslint-disable-next-line react/jsx-no-bind */ } { __( 'Maybe later', 'jetpack-backup-pkg' ) } ); }; export default ReviewRequest;