@using Microsoft.AspNetCore.Mvc.Localization
@model string
@inject IViewLocalizer Localizer
@using Microsoft.AspNetCore.Authorization
@using LiteCharmsSecurity.STS.Identity.Configuration.Constants
@inject IAuthorizationService AuthorizationService

@if ((await AuthorizationService.AuthorizeAsync(User, AuthorizationConsts.AdministrationPolicy)).Succeeded)
{
    <a class="btn-outline my-2 inline-flex items-center gap-2" href="@Model">@Localizer["IdentityServerAdmin"]</a>
}
