{% 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 == 'sanetta' %}
{{ source('@SanettaTheme/app/storefront/src/assets/icon/'~ name ~'.svg', ignore_missing = true) }}
{% else %}
{{ source('@' ~ namespace ~ '/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
{% endif %}
</span>
{% endblock %}