total rows

This commit is contained in:
Marco Pedone 2025-08-29 16:47:33 +02:00
parent 9c47d57969
commit 4d95791391

View file

@ -26,13 +26,11 @@ export function DataTablePagination<TData>({
return (
<div className="flex items-center justify-between px-2">
<div className="text-muted-foreground flex-1 text-sm">
{hasSelectRow && (
<>
{table.getFilteredSelectedRowModel().rows.length} di{" "}
{table.getFilteredRowModel().rows.length} righe selezionate.
</>
)}
{hasSelectRow &&
`${table.getFilteredSelectedRowModel().rows.length} selezioni su `}
{table.getFilteredRowModel().rows.length} righe totali
</div>
<div className="flex flex-wrap items-center gap-x-6 gap-y-2 lg:gap-x-8">
<div className="flex items-center space-x-2">
<p className="text-sm font-medium">Righe per pagina</p>