{% set flashes = craft.app.session.getAllFlashes() %} {% if flashes %}
{% for kind, flash in flashes %}
{% if 'notice' in kind %} {# Heroicon name: outline/check-circle #} {% else %} {# Heroicon name: outline/x-circle #} {% endif %}

{{ flash }}

{% endfor %}
{% endif %}