@let profileUser = displayedUser(); @let statusColor = currentStatusColor(); @let statusLabel = currentStatusLabel(); @let self = isSelf(); @let friend = isFriend(); @let isEditable = editable(); @let activeField = editingField();
@if (isEditable) { }
@if (isEditable && activeField === 'displayName') { } @else if (isEditable) { } @else {

{{ profileUser.displayName }}

}
@if (profileUser.username && profileUser.username !== profileUser.displayName) {

{{ '@' + profileUser.username }}

} @if (isEditable) {
@if (showStatusMenu()) {
@for (opt of statusOptions; track opt.label) { }
}
} @else {
{{ statusLabel }}
}
@if (isEditable) { @if (activeField === 'description') { } @else { } } @else if (profileUser.description) {

{{ profileUser.description }}

} @if (avatarError()) {
{{ avatarError() }}
} @if (profileUser.gameActivity; as activity) { }
@if (!self) {
} @else {
}