<?php
/** @var TestConnection $block */
/** @var Escaper $escaper */

use Macopedia\OrlenShipping\Block\Adminhtml\System\Config\TestConnection;
use Magento\Framework\Escaper;

?>
<div class="actions actions-test-email">
    <button class="actions-test-email" type="button" id="<?= $block->getHtmlId() ?>">
        <span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span>
    </button>
</div>
<script type="text/x-magento-init">
    {
        "#carriers_orlenpaczka_test_connection": {
            "Macopedia_OrlenShipping/js/testconnection": {
                "ajaxUrl": "<?= $escaper->escapeHtml($block->getButtonUrl()) ?>"
            }
        }
    }
</script>
