import { IonCardSubtitle, IonCardTitle, IonCol, IonInfiniteScroll, IonInfiniteScrollContent, IonList, IonRow } from "@ionic/react"; import { connectInfiniteHits } from "react-instantsearch-core"; import CustomSearchHit from "./CustomSearchHit"; const CustomInfiniteHits = ({ hits, hasMore, refineNext }) => { const getMore = (e, refine) => { refine(); e.target.complete(); } return (
{ hits.map(hit => ) } { hits.length < 1 && No results found Try something else } getMore(e, refineNext) }>
); } export default connectInfiniteHits(CustomInfiniteHits);