{% trans_default_domain 'users' %}
{% if this.actions %}
   <div {{ attributes.defaults(stimulus_controller(this.shortName)) }}>
      <a role="button" class="trigger"
            {{ stimulus_target(this.shortName, 'button') }}
            {{ stimulus_action(this.shortName, 'toggleMenu', 'click')|stimulus_action(this.shortName, 'hideMenu', 'click@window') }}>
         <twig:ux:icon name="more-dots" class="c-icon"/>
      </a>
      <ul class="menu"
            {{ stimulus_target(this.shortName, 'menu') }}>
         {% if this.actions.reorderUrl ?? null %}
            <li><a href="{{ this.actions.reorderUrl }}">{{ 'info.repeat.order'|trans }}</a></li>
         {% endif %}
         {% if this.actions.invoiceUrl ?? null %}
            <li><a href="{{ this.actions.invoiceUrl }}" download>{{ 'info.invoice.download'|trans }}</a></li>
         {% endif %}
         {% if this.actions.trackAndTraceLink ?? null %}
            <li><a href="{{ this.actions.trackAndTraceLink }}">{{ 'info.track.package'|trans }}</a></li>
         {% endif %}
         {% if this.actions.returnUrl ?? null %}
            <li class="return"><a href="{{ this.actions.returnUrl }}">{{ 'info.return.product'|trans }}</a></li>
         {% endif %}
         {% if this.actions.reclamationUrl ?? null %}
            <li class="reclamation"><a href="{{ this.actions.reclamationUrl }}">{{ 'info.reclamation'|trans }}</a></li>
         {% endif %}
      </ul>
   </div>
{% endif %}
