<?php

/**
 * Tools tab – Uninstall cleaner.
 *
 * @package northmill-online-shared
 */
declare (strict_types=1);
namespace Northmill_Online_Shared_Sync;

/**
 * View parameters.
 *
 * @var array $params
 */
\defined('ABSPATH') || exit;
if ($params['delete_data_on_uninstall']) {
    ?>
	<p style="color: red;"><?php 
    \esc_html_e('Data WILL BE DELETED on uninstall.', 'northmill-online-shared');
    ?></p>
	<button class="nm-uninstall-data-deletion">
		<?php 
    \esc_html_e('Disable', 'northmill-online-shared');
    ?>
	</button>
<?php 
} else {
    ?>
	<p><?php 
    \esc_html_e('Data will not be deleted on uninstall.', 'northmill-online-shared');
    ?></p>
	<button class="nm-uninstall-data-deletion" data-enable="1">
		<?php 
    \esc_html_e('Enable', 'northmill-online-shared');
    ?>
	</button>
<?php 
}
?>
<p>
	<?php 
echo \esc_html($params['warning_message']);
?>
</p>
<?php 
