{# body Heading
 @param {string} headingLevel The heading level. Optional, default is 1. Can be 1,2,3,4 
 @param {string} lang The language used. Can be 'en','el'. Optional.
 @returns govcy body Heading for emails html 
#}
{% macro gocvyEmailBodyHeading(params) -%}
{%- from "./bodyParagraph.njk" import gocvyEmailBodyParagraph -%}
{#- set default values -#}
{%- set headingLevel = params.headingLevel | default(1) -%}
{%- if headingLevel > 4 -%} 
    {%- set headingLevel = 4 -%} 
{%- endif -%}
{# depending on the heading level set the font-size #}
{%- if headingLevel == 1 -%}
    {%- set fontSize = '28px' -%}
{%- elif headingLevel == 2 -%}
    {%- set fontSize = '24px' -%}
{%- elif headingLevel == 3 -%}
    {%- set fontSize = '20px' -%}
{%- else -%}
    {%- set fontSize = '18px' -%}
{%- endif -%}
{% call gocvyEmailBodyParagraph({lang:params.lang}) %}
    <h{{headingLevel}} style="font-size:{{fontSize}};font-weight:700;margin: 0;">
        {{ caller() }}
    </h{{headingLevel}}>
{% endcall %}
{%- endmacro %}