<div class="modal-content" {{on-key "Enter" (perform this.deleteTagTask)}} data-test-modal="confirm-delete-tag">
    <header class="modal-header">
        <h1>Are you sure you want to delete this tag?</h1>
    </header>
    <button type="button" class="close"title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>

    <div class="modal-body">
        You’re about to delete the tag "<strong>{{@data.tag.name}}</strong>".
        {{#if @data.tag.count.posts}}
            It will be removed from <span data-test-text="posts-count">{{gh-pluralize @data.tag.count.posts "post"}}</span>.
        {{/if}}
        This is permanent! We warned you, k?
    </div>

    <div class="modal-footer">
        <button class="gh-btn" type="button" {{on "click" @close}} data-test-button="cancel"><span>Cancel</span></button>
        <GhTaskButton @buttonText="Delete" @successText="Deleted" @task={{this.deleteTagTask}} @class="gh-btn gh-btn-red gh-btn-icon" data-test-button="confirm" />
    </div>
</div>