{#
 * Component variables
 *
 * props:
 *  alerType
 *
 * slots
 *  alertText
 *
 #}
<div {{ attributes.addClass('alert-wrapper') }}>
  {{ title_prefix }}
  {{ title_suffix }}

  {% set alertType = content.field_alert_type.0['#markup']|clean_class %}
  {% embed 'dchadwick:alert' with {
    alertType: alertType,
  }%}

    {% block alertText %}
      <p>{{ content.field_alert_text }}</p>
    {% endblock%}

  {% endembed %}

</div>
