@let profileUser = user(); @let isEditable = editable(); @let activeField = editingField(); @let statusColor = currentStatusColor(); @let statusLabel = currentStatusLabel();
@if (isEditable) {
@if (activeField === 'displayName') { } @else { }

{{ profileUser.username }}

@if (activeField === 'description') { } @else { }
} @else {

{{ profileUser.displayName }}

{{ profileUser.username }}

@if (profileUser.description) {

{{ profileUser.description }}

} } @if (avatarError()) {
{{ avatarError() }}
} @if (isEditable) {
@if (showStatusMenu()) {
@for (opt of statusOptions; track opt.label) { }
}
} @else {
{{ statusLabel }}
}