<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/** @var \Magento\AdobeStockAdminUi\Block\Adminhtml\System\Config\TestConnection $block */
/** @var \Magento\Framework\Escaper $escaper */
?>
<div data-bind="scope: 'adobe-stock-test-connection'" class="scalable">
    <!-- ko template: getTemplate() --><!-- /ko -->
</div>
<script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
                "components": {
                    "adobe-stock-test-connection": {
                        "component": "Magento_AdobeStockAdminUi/js/connection",
                        "success": "<?= $escaper->escapeHtmlAttr($block->isConnectionSuccessful()) ?>",
                        "url": "<?= $escaper->escapeJs($escaper->escapeUrl($block->getAjaxUrl())) ?>",
                        "buttonLabel": "<?= $escaper->escapeHtml($block->getButtonLabel()) ?>"
                    }
                }
            }
        }
    }
</script>
