{% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
{% block utilities_icon %}
{% set styles = [ size, color, rotation, flip, class ] %}
{% set bambinoIcons = ['heart-fill', 'heart_black', 'password-change', 'avatar', 'bag', 'bag-add', 'arrow-double-left',
'arrow-double-right', 'arrow-double-up', 'arrow-medium-double-down', 'arrow-medium-double-left', 'arrow-medium-double-right',
'arrow-medium-double-up', 'arrow-medium-down', 'arrow-medium-left', 'arrow-medium-right', 'arrow-right', 'arrow-right-small',
'arrow-medium-up', 'arrow-small-down', 'arrow-small-left', 'arrow-small-right', 'arrow-small-up', 'envelope', 'headset',
'speech-bubbles', 'whatsapp', 'facebook', 'instagram', 'twitter', 'wordpress', 'youtube', 'mobile', 'cockpit', 'file', 'file-add',
'arrow-head-right', 'arrow-head-left', 'long-arrow-up-2', 'chevron-right-2', 'file-text-2', 'facebook', 'pinterest', 'x',
'checkmark','pobierz-pdf'] %}
{% if pack is not defined %}
{% set pack = 'default' %}
{% endif %}
{% if name in bambinoIcons %}
<span
class="icon bambino {{ pack }} icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@CrehlerMojeBambinoEngine/app/storefront/dist/asset/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
</span>
{% else %}
<span
class="icon test-{{ pack }} original icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@Storefront/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
</span>
{% endif %}
{% endblock %}