@page "/admin/system/sentry"

@using Moonlight.Shared.Components.Navigations
@using global::Sentry

@attribute [PermissionRequired(nameof(Permissions.AdminSysSentry))]

<AdminSystemNavigation Index="1"/>

<div class="row">
    <div class="col-xxl-6 my-3">
        <div class="card">
            <div class="card-header">
                <span class="card-title">
                    <TL>Status</TL>
                </span>
            </div>
            <div class="card-body">
                <span class="fs-5">
                    @if (SentrySdk.IsEnabled)
                    {
                        <TL>Sentry is enabled</TL>
                    }
                    else
                    {
                        <TL>Sentry is disabled</TL>
                    }
                </span>
            </div>
        </div>
    </div>
</div>

@code
{
    private Task Load(LazyLoader arg)
    {
        return Task.CompletedTask;
    }
}