@using Iceshrimp.Shared.Schemas.Web
@if (User.DisplayName != null && User.Emojis.Count != 0)
{
    <MfmText Text="@User.DisplayName.Split('\n')[0]" Emoji="@User.Emojis" Simple="@true"/>
}
else
{
    @(User.DisplayName ?? User.Username)
}

@code {
    [Parameter] [EditorRequired] public required UserResponse User { get; set; }
}