{% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
{% block utilities_icon %}
{% set styles = [ size, color, rotation, flip, class ] %}
{% if pack is not defined %}
{% set pack = 'default' %}
{% endif %}
{% if namespace is not defined %}
{% set namespace = 'Storefront' %}
{% endif %}
<span class="icon icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{% if pack == 'globus_icons' %}
{{ source('@BaumarktTheme/../app/storefront/src/assets/icon/globus_icons/'~ name ~'.svg', ignore_missing = false) }}
{% elseif pack == 'pixup' %}<span
class="{% if noIcon == null %}icon{% endif%} icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %} {% if class != null %}{{ class }}{% endif %}">
{{ source('@PixupWishlistSW6/../app/storefront/dist/assets/icon/pixup/'~ name ~'.svg', ignore_missing = false) }}</span>
{% else %}
{{ source('@' ~ namespace ~ '/../app/storefront/dist/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
{% endif %}
</span>
{% endblock %}