{% extends "freeform/_layouts/main" %}

{% set selectedSubnavItem = 'export' %}
{% set currentUrl = craft.app.request.absoluteUrl %}

{% block sidebar %}

    <nav>
        <ul>
            {% for id, item in freeform.plugin.export.navigation %}
                {% if item.heading is defined %}
                    <li class="heading"><span>{{ item.heading }}</span></li>
                {% else %}
                    <li>
                        <a href="{{ cpUrl(item.url) }}" class="{{ item.url in currentUrl ? "sel" }}">
                            {{ item.title | raw }}
                        </a>
                    </li>
                {% endif %}
            {% endfor %}
        </ul>
    </nav>
{% endblock %}
