<?php
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes 2020-present. All rights reserved.
 * This product is licensed per Magento install
 * See https://hyva.io/license
 */

use Magento\Framework\Escaper;
use Magento\Wishlist\Block\Customer\Wishlist\Button;

/** @var Escaper $escaper */
/** @var Button $block */
?>
<?php if ($block->getWishlist()->getItemsCount() &&
    $block->getWishlist()->getShared() < $block->getConfig()->getSharingEmailLimit()): ?>
    <button type="submit"
            name="save_and_share"
            title="<?= $escaper->escapeHtmlAttr(__('Share Wish List')) ?>"
            class="action share btn btn-secondary border-2 border-primary-darker text-black py-1 md:py-2 px-2 lg:px-4 text-xs md:text-sm lg:text-base rounded">
        <span>
            <?= $escaper->escapeHtml(__('Share Wishlist')) ?>
        </span>
    </button>
<?php endif;?>
