<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Shop by Base for Magento 2 (System)
 */

use Amasty\ShopbyBase\Block\Adminhtml\System\Config\InformationBlocks\Notification;
use Magento\Framework\Escaper;

/**
 * @var Notification $block
 * @var Escaper $escaper
 */

if (!$block->isDisplayMessage()) {
    return;
}
?>
<div>
    <p class="message message-notice">
        <?php if ($block->isEscapeNeeded()): ?>
            <?= $escaper->escapeHtml($block->getNotificationText()) ?>
        <?php else: ?>
            <?= /** @noEscape */ $block->getNotificationText() ?>
        <?php endif; ?>
    </p>
</div>
