<div class="chat-message-collapser">
  {{#if this.hasUploads}}
    {{html-safe this.cooked}}

    <Collapser @header={{this.uploadsHeader}}>
      <div class="chat-uploads">
        {{#each this.uploads as |upload|}}
          <ChatUpload @upload={{upload}} />
        {{/each}}
      </div>
    </Collapser>
  {{else}}
    {{#each this.cookedBodies as |cooked|}}
      {{#if cooked.needsCollapser}}
        <Collapser @header={{cooked.header}}>
          {{cooked.body}}
        </Collapser>
      {{else}}
        {{cooked.body}}
      {{/if}}
    {{/each}}
  {{/if}}
</div>