<?php
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
?>
<div class="wtai-error-messages" data-bind="scope: 'wtaiErrorMessages'">
    <div class="messages" data-bind="foreach: messages">
        <div class="message message-error error">
            <div data-ui-id="messages-message-error" data-bind="html: $data"></div>
            <span class="action-close" data-bind="click: function(item) { $parent.dismissMessage($data) }"></span>
        </div>
    </div>
</div>
<script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
                "components": {
                    "wtaiErrorMessages": {
                        "component": "WriteTextAI_WriteTextAI/js/edit/error-messages"
                    }
                }
            }
        }
    }
</script>
