{% if currentNotification is not null %}
{% set bgcImg = currentNotification.toAlert ? asset("assets/img/icons/notification-alert.png") : asset("assets/img/icons/notification.png") %}
{% set newNotif = currentNotification.toAlert ? "alert" : "" %}
<div class="partial-notification-button --lib-modal-btn --lib-target-notif {{ newNotif }}"
id="js-partial-notification-btn"
data-url="{{ path("notification_ajax",{"id":currentNotification.id}) }}"
style="background-image: url({{ bgcImg }})"
>
</div>
<div class="partial-notification --lib-modal --lib-id-notif">
<div class="content bgc-lightGreen">
<div class="meli-end-end">
<span class="close --lib-modal-btn --lib-target-notif">X</span>
</div>
{{ currentNotification.message|raw }}
</div>
</div>
<script src="{{ asset("assets/js/modal.js") }}"></script>
<script defer src="{{ asset("assets/js/notification.js") }}"></script>
{% endif %}