{% set title = _args.title|default(null) %}
{% set subtitle = _args.subtitle|default(null) %}
{% set styles = _args.styles|default(null) %}
{% set close = _args.close|default(null) %}
<div class="modal-header{% if styles %} {{ styles }}{% endif %}">
{% block header %}
{% if title is not empty %}
<h5 class="modal-title">{{ title }}{% if subtitle is not empty %} <small>{{ subtitle }}</small>{% endif %}</h5>
{% endif %}
{% include '@ui2022/modal__close-button.html.twig' with { close: close } %}
{% endblock %}
</div>
<div class="modal-body">
{% block body %}{% endblock %}
</div>
{% if block('footer') is defined %}
<div class="modal-footer">
{{ block('footer') }}
</div>
{% endif %}