@using Iceshrimp.Frontend.Localization @using Iceshrimp.Shared.Schemas.Web @using Microsoft.Extensions.Localization @using Iceshrimp.Assets.PhosphorIcons @inject IStringLocalizer Loc;
@switch (UserProfile.Role) { case Role.Moderator: @Loc["Moderator"] break; case Role.Admin: @Loc["Admin"] break; case Role.None: break; default: throw new ArgumentOutOfRangeException(); } @if (User.IsBot) { @Loc["Automated"] } @if (UserProfile.IsLocked) { @Loc["Private"] }
@if (UserProfile.Bio != null) {
}
@if (UserProfile.Birthday != null) {
@Loc["Birthday"] @UserProfile.Birthday
} @if (UserProfile.Location != null) {
@Loc["Location"] @UserProfile.Location
}
@if (UserProfile.Fields != null) {
@foreach (var field in UserProfile.Fields) { }
}
@code { [Parameter] [EditorRequired] public required UserResponse User { get; set; } [Parameter] [EditorRequired] public required UserProfileResponse UserProfile { get; set; } [Parameter] [EditorRequired] public required List Emojis { get; set; } }