@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; } private async void Accept() { // FIXME: This should be a fancy animation instead of a reload await Api.FollowRequests.AcceptFollowRequest(FollowRequest.Id); NavigationManager.NavigateTo("/follow-requests"); } private async void Reject() { // FIXME: This should be a fancy animation instead of a reloady await Api.FollowRequests.RejectFollowRequest(FollowRequest.Id); NavigationManager.NavigateTo("/follow-requests"); } }