@inject ApiService Api; @using Iceshrimp.Frontend.Core.Services @using Iceshrimp.Shared.Schemas.Web @if (UserProfile != null) {
@User.DisplayName
@@@User.Username @if (User.Host != null) { var host = $"@{User.Host}"; @host }
} @code { [Parameter] [EditorRequired] public required UserResponse User { get; set; } private UserProfileResponse? UserProfile { get; set; } protected override async Task OnInitializedAsync() { UserProfile = await Api.Users.GetUserProfile(User.Id); } }