{% from "_macros.html" import icon %}
{#
  What ComfyUI said when it was asked what it has.

  Everything here came off that machine and is escaped accordingly -- a
  checkpoint filename is a filename somebody chose, not a value this
  application generated.
#}
<div class="alert {{ 'alert--error' if message_kind == 'error' else 'alert--success' }}"
     style="margin-top: var(--sp-3)">
  {{ icon("warning" if message_kind == "error" else "check", "icon--sm") }}
  <span>{{ message }}</span>
</div>

{% if checkpoints %}
<p class="field__hint">
  {% if kept %}
    Your list above was left alone. What ComfyUI has:
  {% else %}
    Filled in above:
  {% endif %}
</p>
<pre class="tool-result__text">{{ checkpoints | join("\n") }}</pre>
{% endif %}
