{% set variant = _args.variant|default('default') %}
{% set avatar = _args.avatar %}
{% set displayName = _args.displayName %}
{% set profileLink = _args.profileLink %}
<div class="hc-header-menu-session hc-header-menu-session--{{ variant }}">
{% if avatar %}
{% include 'hc/avatar.html.twig' with {
image: avatar
} %}
{% else %}
{% include 'hc/icon.html.twig' with {
glyph: 'user',
variant: 'contrast',
} %}
{% endif %}
<span class="hc-header-menu--account--name">{{ displayName }}</span>
<a href=" {{ profileLink|e('html_attr') }}" title="Edit profile" class="hc-button hc-button--icon">
<i class="hc-icon hc-icon--settings"></i>
</a>
</div>