{{#if (if (has-block 'header') true @heading)}}
{{#if @heading}}

{{#if @icon}} {{/if}} {{@heading}}

{{/if}} {{yield to='header'}}
{{/if}}
{{yield to='body'}}
{{#if (has-block 'footer')}} {{/if}}