{% comment %} Dialog Component Usage: {% include 'payments/components/dialog.html' with dialog_id="myDialog" title="Dialog Title" %} Then in your Alpine.js component: x-data="{ showMyDialog: false }" @click="showMyDialog = true" And in the dialog content:
{% include 'payments/components/dialog.html' with dialog_id="myDialog" title="My Title" %}
{% endcomment %}

{% if icon %} {{ icon }} {% endif %} {{ title }}

{% block dialog_content %} {{ content|default:"Dialog content goes here" }} {% endblock %}
{% if show_footer|default:True %}
{% block dialog_footer %} {% if confirm_action %} {% endif %} {% endblock %}
{% endif %}