{# ========================================================================= #}
{# :: Imports #}
{# ========================================================================= #}
{% import "atoms/button/button-macros.njk" as button %}

{# ========================================================================= #}
{# :: Default #}
{# ========================================================================= #}
{% macro default(classes, text, actions) %}
  <div class="m-actions {{classes}}">
    {% if text %}
      <h5 class="m-actions__text">{{text}}</h5>
    {% endif %}

    <div class="m-actions__options">
      <ul>
        {% for action in actions %}
          <li>{{button.link("a-button--round m-actions__option ", {
              text: action,
              icon: { before: action },
              url: "/"
            })}}</li>
        {% endfor %}
      </ul>
    </div>
  </div>
{% endmacro %}
