()
| 60 | const isCohort3Selected = selectedCohort === CohortGroup.Three; |
| 61 | |
| 62 | const filterTracks = () => { |
| 63 | setLoading(true); |
| 64 | setFilteredTracks(tracks.filter((t) => selectedCohort === 3 ? t.cohort === 3 : t.cohort !== 3)); |
| 65 | setCurrentPage(1); // Reset to first page on filtering |
| 66 | setLoading(false); |
| 67 | }; |
| 68 | |
| 69 | const sortTracks = (sortBy: string) => { |
| 70 | setLoading(true); |