{% block pixup_wishlist_add_to_wishlist %}
{% set stateMsg = remove ? "pixup-wishlist.product-detail.deleteProduct"|trans : "pixup-wishlist.product-detail.addProduct"|trans %}
{% set removeBool = page.header.pixup.antiCacheMode || page.header.pixup.fullAjaxMode ? 'false' : (remove?"true":"false") %}
{% set plp = plp?true:false %}
{% block pixup_wishlist_add_to_wishlist_button %}
<button
onclick="pixupWishlist_changeProductWishlistStateInit(
this,
this.dataset.remove,
'{{productId}}',
)"
data-remove = "{{remove?"true":"false"}}"
name="wishlistModalButton"
class="PixupAddToWishlistBtnPDP Pixup-Wishlist-Product-{{ productId }}"
style="background-color:transparent;border:0;"
title="{{ stateMsg }}">
{% block pixup_wishlist_add_to_wishlist_button_add %}
<span class="add" style="display:{% if removeBool == "true" %}none{% else %}inline-block{% endif %};">
{% sw_icon 'px-heart' style{"namespace":"PixupWishlistSW6","pack":"pixup","class":"PixupAddToWishlistIcon pixupBaseIcon"} %}
</span>
{% endblock %}
{% block pixup_wishlist_add_to_wishlist_button_remove %}
<span class="remove" style="display:{% if removeBool == "true" %}inline-block{% else %}none{% endif %};">
{% sw_icon 'px-heart' style{"namespace":"PixupWishlistSW6","pack":"pixup","class":"PixupAddToWishlistRemoveIcon pixupBaseIcon pxOutlineWhite"} %}
</span>
{% endblock %}
</button>
{% endblock %}
{% endblock %}
{# Content and JS FIles needet for this twig can be found in layout/header/header.html.twig #}