{% from "../../macros/attributes.njk" import govukAttributes -%}

{% set headingLevel = params.headingLevel if params.headingLevel else 1 -%}

<div class="govuk-panel govuk-panel--confirmation
  {%- if params.classes %} {{ params.classes }}{% endif %}"
  {{- govukAttributes(params.attributes) }}>
  <h{{ headingLevel }} class="govuk-panel__title">
    {{ params.titleHtml | safe if params.titleHtml else params.titleText }}
  </h{{ headingLevel }}>
  {% if caller or params.html or params.text %}
  <div class="govuk-panel__body">
    {{ caller() if caller else (params.html | safe | trim | indent(4) if params.html else params.text) }}
  </div>
  {% endif %}
</div>
