{# LIBRARIES #}
{{ attach_library('ui_patterns/sa_list.sa_list_lib') }}

{# VARIABLES #}
{% set title = title|default("Important updates") %}
{% set link_icon_right = link_icon_right|default(global_icon_right|default('fas fa-chevron-right')) %}

{# TEMPLATE #}
{% if links %}
  <div id="sa-list">
    <h2>{{ title }}</h2>
    <div class="announcement-list">
    {% for link in links %}
      <p>
        {% include "@atoms/tm-links/icon-bookended/icon-bookended.twig" with {
          "text": link['text'],
          "url": link['url'],
          "icon_right": link_icon_right,
          "display": "noflex",
        } only %}
      </p>
    {% endfor %}
    </div>
    <div class="sa-footer">
      {{ footer }}
    </div>
    <button class="btn btn-sm btn-default rounded-3 ffl buy-tickets-btn d-md-none">Buy tickets</button>
  </div>
{% endif %}
