{% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
{# {% block utilities_icon %}
{% if pack is not defined %}
{% set pack = 'default' %}
{% endif %}
{% set customIcon = source('@LogBchange/../app/storefront/src/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) %}
{% if (customIcon) %}
{% set styles = [ size, color, rotation, flip, class ] %}
<span
class="icon icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ customIcon|raw }}
</span>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %} #}
{#{% block utilities_icon %}
{% set styles = [ size, color, rotation, flip, class ] %}
{% if pack is not defined %}
{% set pack = 'default' %}
{% endif %}
{% if pack == 'MeineIcons' %}
<span
class="isax icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@LogBchange/../app/storefront/dist/assets/icons/linear/'~ name ~'.svg', ignore_missing = false) }}
</span>
{% else %}
<span
class="icon icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@Storefront/../app/storefront/dist/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
</span>
{% endif %}
{% endblock %}#}
{%- 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 -%}
{% if pack == 'MeineIcons' %}
<span class="isax icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@LogBchange/app/storefront/dist/assets/icons/linear/'~ name ~'.svg', ignore_missing = false) }}
</span>
{#{% if config('LogBchange.config.environment') == "prod" %}
<span class="isax icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@LogBchange/../app/storefront/dist/assets/icons/linear/'~ name ~'.svg', ignore_missing = false) }}
</span>
{% else %}
<span class="isax icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{{ source('@LogBchange/app/storefront/dist/assets/icons/linear/'~ name ~'.svg', ignore_missing = false) }}
</span>
{% endif %}#}
{% else %}
<span class="icon icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
{% set icon = source('@' ~ namespace ~ '/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) %}
{{ icon|sw_icon_cache|raw }}
</span>
{%- endif -%}
{%- endblock -%}