@page "/banned-users"
@using HeartTrack.Models

<PageTitle>Banned Users</PageTitle>

<h1>Banned Users</h1>

This is banned users list of this website.
<div>
    <NavLink class="btn btn-primary" href="banned-users/add" Match="NavLinkMatch.All">
        <i class="fa fa-plus"></i> Ajouter
    </NavLink>
</div>
<SurveyPrompt Title="How is Blazor working for you?" />

<DataGrid TItem="User"
          Data="@users"
          ReadData="@OnReadData"
          TotalItems="@totalUser"
          PageSize="10"
          ShowPager
          Responsive>
    <DataGridColumn TItem="User" Field="@nameof(User.Id)" Caption="Id" />
    <DataGridColumn TItem="User" Field="@nameof(User.Username)" Caption="@Localizer["Username"]" />
    <DataGridColumn TItem="User" Field="@nameof(User.Nom)" Caption="@Localizer["FirstN"]" />
    <DataGridColumn TItem="User" Field="@nameof(User.Prenom)" Caption="@Localizer["LastN"]" />
    <DataGridColumn Caption="" />
</DataGrid>


