@inject ApiService Api;
@using Iceshrimp.Frontend.Core.Services
@using Iceshrimp.Shared.Schemas.Web
@if (UserProfile != null)
{
}
@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);
}
}