{# OOB swap for nav entries and calendars when toggling associations or editing calendars #}
{% import 'macros/links.html' as links %}

{# Associated Entries and Calendars - vertical on mobile, horizontal with arrows on desktop #}
{% if (associated_entries and associated_entries.entries) or calendars %}
  <div class="flex flex-col sm:flex-row sm:items-center gap-2 border-r border-stone-200 mr-2 sm:max-w-2xl"
       id="entries-calendars-nav-wrapper"
       hx-swap-oob="true">
       {% include '_types/post/admin/_nav_entries.html' %}
  </div>
{% else %}
  {# Empty placeholder to remove nav items when all are disassociated/deleted #}
  <div id="entries-calendars-nav-wrapper" hx-swap-oob="true"></div>
{% endif %}
