{# LIBRARIES #}
{{ attach_library('ui_patterns/journey_smart_tabs.journey_smart_tabs_lib') }}
{{ attach_library('ui_patterns/bs-tabs.tabs_lib') }}

{# VARIABLES #}
{% set departures_data = departures_data|default('') %}
{% set arrivals_data = arrivals_data|default('') %}
{% set departures_title = departures_title|default('Departures') %}
{% set arrivals_title = arrivals_title|default('Arrivals') %}

{# TEMPLATE #}
{% set fields = {
    'items': [
        {
            'tbid': 'departures',
            'title': departures_title,
            'content': departures_data,
            'first': true,
        },
        {
            'tbid': 'departures',
            'title': arrivals_title,
            'content': '',
            'first': false,
        }
    ],
    'pid': 'live-trains',
} %}
<div class="drop-shadow">
    {{ pattern('bs-tabs-items', fields, 'tbi_j') }}
</div>
