{% macro toaster( id="toaster", toasts=[], main_attrs=None, is_fragment=false, include_html=true, include_script=false, register_on=["alpine:init"] ) %} {% if not is_fragment and include_script %} {% include "components/toast-script.njk" %} {% endif %} {% if include_html %} {% set iconMapping = { 'error': 'circle-x', 'success': 'circle-check', 'info': 'info', 'warning': 'circle-alert' } %}
{{ toast.message.description }}
{% endif %} {% endif %}