{{#d-modal-body class="flag-modal-body" title=title}}
  <form>
    {{#flag-selection nameKey=selected.name_key flags=flagsAvailable as |f|}}
      {{flag-action-type
        flag=f
        message=message
        isWarning=isWarning
        selectedFlag=selected
        username=model.username
        staffFlagsAvailable=staffFlagsAvailable
        changePostActionType=(action "changePostActionType")
      }}
    {{/flag-selection}}
  </form>
{{/d-modal-body}}

<div class="modal-footer">
  {{d-button
    class="btn-primary"
    action=(action "createFlag")
    disabled=submitDisabled
    title="flagging.submit_tooltip"
    icon=submitIcon
    label=submitLabel
  }}

  {{#if canSendWarning}}
    {{d-button
      class="btn-danger"
      action=(action "createFlagAsWarning")
      disabled=submitDisabled
      icon="exclamation-triangle"
      label="flagging.official_warning"
    }}
  {{/if}}

  {{#if canTakeAction}}
    {{reviewable-bundled-action
        bundle=flagActions
        performAction=(action "takeAction")
        reviewableUpdating=submitDisabled
    }}

    {{d-button
      class="btn-danger"
      action=(action "flagForReview")
      icon="exclamation-triangle"
      label="flagging.flag_for_review"
    }}
  {{/if}}

  {{#if showDeleteSpammer}}
    {{d-button
      class="btn-danger"
      action=(action "deleteSpammer")
      disabled=submitDisabled
      icon="exclamation-triangle"
      label="flagging.delete_spammer"
    }}
  {{/if}}
</div>
