Lade-anzeige für Tabellen

This commit is contained in:
PxlLoewe
2025-07-11 23:23:30 -07:00
parent bd40c9f817
commit d2b287abdc
2 changed files with 67 additions and 16 deletions

View File

@@ -86,6 +86,28 @@ export default function SortableTable<TData>({
);
}
export const RowsPerPage = ({
rowsPerPage,
setRowsPerPage,
}: {
rowsPerPage: number;
setRowsPerPage: (rowsPerPage: number) => void;
}) => {
return (
<select
className="select w-32"
value={rowsPerPage}
onChange={(e) => setRowsPerPage(Number(e.target.value))}
>
<option value={10}>10</option>
<option value={30}>30</option>
<option value={50}>50</option>
<option value={100}>100</option>
<option value={300}>300</option>
</select>
);
};
export const Pagination = ({
page,
totalPages,