@Localizer["Announcement"]
@current.PublishedAt.GetPassedTime(Localizer)
@if (ShownCount > 1)
{
@Localizer["{0} of {1}", index + 1, ShownCount]
}
@if (current.StartsAt is not null || current.EndsAt is not null)
{
@When(current)
}
@((MarkupString)current.Content)
@foreach (var reaction in current.Reactions)
{
@if (reaction.Url is { Length: > 0 } image)
{
}
else
{
@reaction.Name
}
@reaction.Count
}
@foreach (var emoji in QuickReactions)
{
@emoji
}
}
@code {
static readonly string[] QuickReactions = ["👍", "❤️", "😂", "🎉", "🔥", "😮", "😢"];
[Inject] AnnouncementService AnnouncementService { get; set; }
[Inject] StreamingService Streaming { get; set; }
List