{% extends '@component/_template/_block.html.twig' %}
{% if data is not defined %}
{% set data = null %}
{% endif %}
{% import "@component/_template/_html_macro.html.twig" as macros %}
{% block component %}
{% if value.section_top_icon is defined %}
{% set iconOptions = generateItemOptions(value.section_top_icon, componentKey ~ '.section_top_icon') %}
{% if canDisplayComponentByAcl( iconOptions) %}
{{ macros.generateHtmlComponentStart(iconOptions, 'section-icon-top') }}
{% include '@component/atom/icon.html.twig' with {'icon': value.section_top_icon.icon} %}
{{ macros.generateHtmlComponentEnd(iconOptions) }}
{% endif %}
{% endif %}
{% for k,section in value.sections %}
{{ component(section, componentKey ~ '.sections.' ~ k, data ) }}
{% endfor %}
{% endblock component %}