@page "/tokens"
@using HeartTrack.Models

<PageTitle>Tokens</PageTitle>

<h1>@Localizer["Title"]</h1>

<p>
    @Localizer["Description"]
</p>

<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 TItem="User" Field="@nameof(User.Password)" Caption="@Localizer["Password"]" />
</DataGrid>


