()
| 104 | }, [currentPage]); |
| 105 | |
| 106 | const getPaginatedData = () => { |
| 107 | const data = searching ? profiles : shuffledProfiles; |
| 108 | const startIndex = (currentPage - 1) * recordsPerPage; |
| 109 | const endIndex = startIndex + recordsPerPage; |
| 110 | return data.slice(startIndex, endIndex); |
| 111 | }; |
| 112 | |
| 113 | const renderProfiles = () => { |
| 114 | if (loadingProfiles) { |