/** * External dependencies. */ import { __ } from '@wordpress/i18n'; import { Button, Icon, Flex, FlexItem } from '@wordpress/components'; import { starFilled, shield, backup, info, list } from '@wordpress/icons'; import { useRollbackContext } from '@wp-rollback/shared-core/context/RollbackContext'; /** * PremiumRollbackInlineUpsell component provides an inline upsell experience within the rollback view * * @return {JSX.Element} The premium rollback inline upsell component */ const PremiumRollbackInlineUpsell = () => { const { handleCancel } = useRollbackContext(); const handleUpgrade = () => { window.open('https://wprollback.com/pricing/?utm_source=free-plugin&utm_medium=rollback-upsell&utm_campaign=premium-rollback', '_blank'); }; const features = [ { icon: backup, title: __('Premium Plugin & Theme Rollbacks', 'wp-rollback'), description: __('Roll back any premium plugin or theme from any marketplace - not just WordPress.org.', 'wp-rollback') }, { icon: shield, title: __('Version Preservation', 'wp-rollback'), description: __('For premium assets, creates a zip archive of the current version and stores the archive.', 'wp-rollback') }, { icon: info, title: __('Rollback Notes & Documentation', 'wp-rollback'), description: __('Add detailed notes to each rollback for better team coordination and change tracking.', 'wp-rollback') }, { icon: list, title: __('Advanced Activity Logging', 'wp-rollback'), description: __('Complete audit trail of all rollbacks with timestamps, user tracking, and detailed logs.', 'wp-rollback') } ]; return ( <>
{feature.description}
{ __('Try WP Rollback Pro risk-free. If you\'re not completely satisfied, get your money back within 30 days.', 'wp-rollback') }