{% set set_paramets = {
  showBreadcrumb: component.fieldSwitch,
  breadcrumb: component.listsLinks.all() ?? []
} %}

{% if type == 'slider' %}
  {% set set_paramets =
    set_paramets|merge({
      sliders: component.sliderMasterHead.all() ?? []
    })
  %}
{% elseif type == 'video' %}
  {% set set_paramets =
    set_paramets|merge({
      backgroundImage: component.image[0] ?? null, 
      title: component.fieldRedactorSimple ?? null,
      description: component.description ?? null,
      link: component.itemLink ?? null,
      fieldvideo:component.fieldvideo ?? null ,
    })
  %}
{% else %}
  {% set set_paramets =
    set_paramets|merge({
      backgroundImage: component.image[0] ?? null,
      title: component.blockTitle ?? null,
      description: component.description ?? null,
      link: component.itemLink ?? null
    })
  %}
{% endif %}

{% include 'components/_masterHead-' ~ type with set_paramets only %}
