<div class="cms-element-{{ element.type }}">
<div class="custom-navigation-box">
{% if element.config.showTitle.value and (element.data.title or element.config.rootAsTitle.value) %}
<h4 class="custom-navigation-title category-navigation-link">
{% if element.config.rootAsTitle.value %}
<a href="{{ category_url(element.data.entryPoint) }}">{{ element.data.entryPoint.translated.name }}</a>
{% else %}
{{ element.data.title }}
{% endif %}
</h4>
{% endif %}
{% sw_include '@Storefront/storefront/layout/sidebar/category-navigation.html.twig' with {
navigationTree: element.data.tree.tree,
activeResult: element.data.tree.active
} only %}
</div>
</div>