import { __, sprintf } from '@wordpress/i18n'; import { select } from '@wordpress/data'; import DOMPurify from 'dompurify'; const NotificationNewTestAdded = ( {} ) => { return ( <>

{ __( 'You have added a new test', 'visual-regression-tests' ) }

' + select( 'core/editor' ).getEditedPostAttribute( 'title' ) + '' ) ), } } >

); }; const NotificationUnlockMoreTests = ( { upgradeUrl = '', remainingTests = 0, totalTests = 0, } ) => { return ( <>

{ __( 'Unlock more tests', 'visual-regression-tests' ) }

`, '' ) ) ), } } >

); }; const NotificationUpgradeRequired = ( { upgradeUrl = '' } ) => { return ( <>

{ __( 'Ready for an Upgrade?', 'visual-regression-tests' ) }

%3$s', __( 'Looks like you need a bigger plan to add more tests.', 'visual-regression-tests' ), upgradeUrl, __( 'Upgrade here!', 'visual-regression-tests' ) ) ), } } >

); }; const NotificationConnectionFailed = ( { pluginUrl = '' } ) => { return ( <>

{ __( 'Connection failed', 'visual-regression-tests' ) }

{ __( 'Something went wrong while trying to connect to the external service.', 'visual-regression-tests' ) }

%2$s', pluginUrl, __( 'Go to plugin page', 'visual-regression-tests' ) ) ), } } >

); }; export { NotificationNewTestAdded, NotificationUnlockMoreTests, NotificationUpgradeRequired, NotificationConnectionFailed, };