{# VARIABLES #}
{% set floating_top = floating_top|default(false) %}
{% set badge_position = badge_position|default('image') %}
{% set badge_text_large = ticket_price %}

{% if badge_text_large is empty %}
  {% set badge_text_large = badge_text %}
  {% set badge_text = none %}
{% endif %}

{# TEMPLATE #}
{% include "@molecules/tm-bits/tm-bits-badge.twig" with {
  'badge_text_large': badge_text_large,
  'badge_text': badge_text,
  'floating': badge_position == 'image',
  'badge_class': badge_position == 'content' ? 'fr ms-3 mb-3'
} only %}
