<html
    xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
    data-namespace-typo3-fluid="true"
>

<f:layout name="{f:if(condition: treeEnabled, then: 'ElementBrowserWithNavigation', else: 'ElementBrowser')}" />

<f:section name="Navigation">
    <f:if condition="{tree}">
        <f:then>
            <div class="element-browser-body">
                {tree -> f:format.raw()}
            </div>
        </f:then>
        <f:else>
            <typo3-backend-component-page-browser
                class="scaffold-content-navigation-component"
                tree-actions="{treeActions -> f:format.json()}"
                active-page="{activePage}">
            </typo3-backend-component-page-browser>
        </f:else>
    </f:if>
</f:section>

<f:section name="Content">
    <f:flashMessages queueIdentifier="core.template.flashMessages"/>
    <f:format.raw>{content}</f:format.raw>
</f:section>

</html>
