{{#if hasBlock}}
    {{yield (hash
        isIdle=isIdle
        isRunning=isRunning
        isSuccess=isSuccess
        isFailure=isFailure
    )}}
{{else}}
    <span>
    {{#if isRunning}}{{svg-jar "spinner" class="gh-icon-spinner"}}{{runningText}}{{/if}}
    {{#if isIdle}}{{buttonText}}{{/if}}
    {{#if isSuccess}}{{svg-jar "check-circle"}} {{successText}}{{/if}}
    {{#if isFailure}}{{svg-jar "retry"}} {{failureText}}{{/if}}
    </span>
{{/if}}
