react-instantsearch
Version:
⚡ Lightning-fast search for React, by Algolia
6 lines (5 loc) • 495 B
TypeScript
import type { RecommendComponentProps, RecordWithObjectID, UserClientSideTool } from 'instantsearch-ui-components';
import type { IndexUiState } from 'instantsearch.js';
type ItemComponent<TObject> = RecommendComponentProps<TObject>['itemComponent'];
declare function createCarouselTool<TObject extends RecordWithObjectID>(showViewAll: boolean, itemComponent?: ItemComponent<TObject>, getSearchPageURL?: (nextUiState: IndexUiState) => string): UserClientSideTool;
export { createCarouselTool };