{# LIBRARIES #}
{{ attach_library('ui_patterns/sa_travel_updates.sa_travel_updates_lib') }}

{# VARIABLES #}
{% set block_classes = block_classes|default('mt-4') %}
{% set icon_left = icon_left|default('fas fa-exclamation-triangle') %}
{% set icon_right = icon_right|default(global_icon_right|default('fas fa-chevron-right')) %}

{# TEMPLATE #}
<!-- Service announcements block -->
{% if links %}
  <div id="sa-block" class="{{ block_classes }}">
    {% for link in links %}
      {% include "@atoms/tm-links/icon-bookended/icon-bookended.twig" with {
        "text": link['text'],
        "url": link['url'],
        "icon_left": icon_left,
        "icon_right": icon_right,
        "class": "sa-link belianr ffl"
      } %}
    {% endfor %}
  </div>
{% endif %}
<!-- / Service announcements block -->
