{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{item.node.properties.menuItemIcon}">
    <f:if condition="{item.node.properties.menuItemIcon.mediaType} == 'image/svg+xml'">
        {vh:media.inline(image: item.node.properties.menuItemIcon, class: 'c-main-menu__icon') -> f:format.raw()}
    </f:if>
</f:if>
{item.label}
