const fetchCategories = async () => const response = await fetch('/api/categories?type=entertainment'); const data = await response.json(); setCategories(data); ;
.filters-sidebar width: 280px; flex-shrink: 0; Searching for- porn collection in-All Categorie...
/* Pagination */ pagination.totalPages > 1 && ( <div className="pagination"> <button onClick=() => setPagination(prev => ( ...prev, page: prev.page - 1 )) disabled=pagination.page === 1 > Previous </button> <span>Page pagination.page of pagination.totalPages</span> <button onClick=() => setPagination(prev => ( ...prev, page: prev.page + 1 )) disabled=pagination.page === pagination.totalPages > Next </button> </div> ) </> ) </main> </div> </div> ); ; const fetchCategories = async () => const response
const handleRatingChange = (type, value) => setFilters(prev => ( ...prev, minRating: type === 'min' ? value : prev.minRating, maxRating: type === 'max' ? value : prev.maxRating )); ; const fetchCategories = async () =>