{# Utility macros we'll reuse below -#}
{% macro render_inner_html(icon, text, args) %}
{# used across multiple button types #}
{% if icon -%}
{% if args.svg -%}
{{ args.svg }}
{%- elif icon.startswith("fa") -%}
{% else %}
{% endif -%}
{% endif %}
{%- if text %}{{ translate(text) }}{% endif -%}
{% endmacro %}
{% macro render_link_button(url, args=None, tooltip=None, tooltip_placement="bottom", icon=None, text=None, label=None, classes="") -%}
{{ render_inner_html(icon, text, args) }}
{% endmacro %}
{% macro render_js_button(javascript, args=None, tooltip=None, tooltip_placement="bottom", icon=None, text=None, label=None, classes="") %}
{% endmacro %}
{% macro render_button_group(buttons, icon, args=None, tooltip=None, label=None, classes="") %}
{# A bootstrap dropdown #}
{# Bootstrap dropdown ref: https://getbootstrap.com/docs/5.2/components/dropdowns/ #}