Loading...
;
+ if (error) return
+
Leaderboard
+
+ {/* Search and Items Per Page Selector */}
+
+
+
+
+
+ entries per page
+
+
+
+ {/* Leaderboard Table */}
+
+
+
+ Name |
+ Points Earned |
+
+
+
+ {currentItems.map((entry, index) => (
+
+ {entry.name} |
+ {entry.total_points} |
+
+ ))}
+
+
+
+ {/* Pagination Controls */}
+
+
+
+ Page {currentPage} of {totalPages}
+
+
+
+
+ );
+};
+
+export default Leaderboard;