{% set prevNextLinks = aa_admin_prev_next_links(entity) %}
<div class="next-prev-item">
  {% if prevNextLinks and prevNextLinks.prev %}
    <a href="{{ prevNextLinks.prev }}" class="btn"><i class="fa fa-chevron-left mr-2"></i> item précédent</a>
  {% endif %}
  {% if prevNextLinks is defined and prevNextLinks.next %}
    <a href="{{ prevNextLinks.next }}" class="btn">item suivant <i class="fa fa-chevron-right ml-2"></i></a>
  {% endif %}
</div>