@using Iceshrimp.Shared.Schemas.Web @code { [Parameter] [EditorRequired] public required NoteReactionSchema Reaction { get; set; } [CascadingParameter] Note Note { get; set; } = null!; private void React() { if (Reaction.Reacted) _ = Note.RemoveReact(Reaction.Name); else _ = Note.AddReact(Reaction.Name, Reaction.Sensitive, Reaction.Url); } }