{% stories menulocalaction with { title: 'Components/Navigation/Menu Local Action' } %}

{% story default with {
    args: {
      link: {
        type: 'link',
        title: 'Add content',
        url: '/node/add',
        options: {
          attributes: {
            class: ['button', 'button-action']
          }
        }
      }
    }
  }
%}

{# Set attributes correctly #}
{% set attributes = create_attribute()
    .setAttribute('data-component-id', 'tailpine:menulocalaction')
%}

{# Embed the component and pass attributes correctly #}
{% embed 'tailpine:menulocalaction' with {
      link: link,
      attributes: attributes
    }
%}{% endembed %}

{% endstory %}

{% endstories %}
