{% sw_extends "@Storefront/storefront/component/wishlist/button/add-note.html.twig" %}
{% block component_wishlist_button_add_note %}
{% if modal is not defined %}
{% set modal = true %}
{% endif %}
{% if link is not defined %}
{% set link = path('frontend.wishlist.modal.note', { 'productId': product.id }) %}
{% endif %}
{% if text is not defined %}
{% set text = 'coe-wishlist.detail.addToList'|trans %}
{% endif %}
{% if additionalClass is not defined %}
{% set additionalClass = '' %}
{% endif %}
<button type="button"
class="btn header-actions-btn {{ additionalClass }}"
style="margin-left:0;padding-left:0;"
{% if modal %}
data-toggle="modal"
data-backdrop="static"
data-url="{{ link }}"
data-pid="{{ product.id }}"
{% else %}
onclick="window.location.href='{{ link }}'"
{% endif %}
>
<span class="cytex-coe-wishlist-button-text d-inline-block">
{{ 'coe-wishlist.detail.addToList'|trans }}
</span>
{% sw_include "@CoeWishlistSw6/storefront/component/wishlist/icon.html.twig" with {
pack: 'solid'
} %}
</button>
{% endblock %}