{% trans_default_domain 'admin' %}
{# Fetched by the lazy frame a row's dropdown carries; see ListActionsController.

   `target="_top"` is load-bearing: without it every entry navigates into this
   frame, which is a dropdown — the menu would replace itself with "Content
   missing" and the page would never move. Entries that want a specific frame
   (the modal ones) carry their own `data-turbo-frame`, which wins over this. #}
<turbo-frame id="{{ frame }}" target="_top">
    {% set actions = list_actions(item, [], { view: view, edition: edition }) %}
    {% set actions = actions.children|filter(a => a.displayed) %}

    {% if actions|length > 0 %}
        {% include '@FerienpassAdmin/components/_list_actions_menu.html.twig' with { actions: actions } only %}
    {% else %}
        <div class="px-3 py-2 text-sm text-gray-500 dark:text-gray-400">{{ 'list.noActions'|trans }}</div>
    {% endif %}
</turbo-frame>
