HEX
Server: LiteSpeed
System: Linux premium12.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: desetmhw (842)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/desetmhw/estraveltourim.site/wp-content/plugins/elementor/license.txt
import { Button, Text } from '@elementor/app-ui';

export default function ConditionConflicts( props ) {
	if ( ! props.conflicts.length ) {
		return '';
	}

	const conflictLinks = props.conflicts.map( ( conflict ) => {
		return (
			<Button
				key={ conflict.template_id }
				target="_blank"
				url={ conflict.edit_url }
				text={ conflict.template_title }
			/>
		);
	} );

	return (
		<Text className="e-site-editor-conditions__conflict" variant="sm">
			{
				sprintf(
					/* Translators: %s: a list of conflicted templates */
					__( 'We noticed that you already applied %s with the same condition.', 'elementor-pro' ),
					conflictLinks,
				)
			}
			<br />
			{ __( "To continue, set different conditions for each so they don't conflict.", 'elementor-pro' ) }
		</Text>
	);
}

ConditionConflicts.propTypes = {
	conflicts: PropTypes.array.isRequired,
};