@using Iceshrimp.Frontend.Localization @using Iceshrimp.Shared.Schemas.Web @using Microsoft.Extensions.Localization @using Iceshrimp.Assets.PhosphorIcons @using Iceshrimp.Frontend.Core.Services @inject IStringLocalizer Loc; @inject ApiService Api; @inject NavigationManager NavigationManager;
@code { [Parameter] [EditorRequired] public required FollowRequestResponse FollowRequest { get; set; } [Parameter] [EditorRequired] public required EventCallback OnDelete { get; set; } private async void Accept() { await Api.FollowRequests.AcceptFollowRequest(FollowRequest.Id); await OnDelete.InvokeAsync(FollowRequest.Id); } private async void Reject() { await Api.FollowRequests.RejectFollowRequest(FollowRequest.Id); await OnDelete.InvokeAsync(FollowRequest.Id); } }