{namespace neos=Neos\Neos\ViewHelpers}

<f:if condition="{parts.notificationsCount} > 0">
    <f:then>
        <f:if condition="{neos:rendering.inBackend()}">
            <f:then>
                <div class="c-notification-container c-notification-container--backend">
                    {parts.notifications -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
                <div class="c-notification-container">
                    {parts.notifications -> f:format.raw()}
                </div>
            </f:else>
        </f:if>
    </f:then>
</f:if>
