UNPKG

1.35 kBTypeScriptView Raw
1import type { FrequentlyBoughtTogetherProps as FrequentlyBoughtTogetherPropsUiComponentProps } from 'instantsearch-ui-components';
2import type { AlgoliaHit, BaseHit } from 'instantsearch.js';
3import type { UseFrequentlyBoughtTogetherProps } from 'react-instantsearch-core';
4type UiProps<THit extends BaseHit> = Pick<FrequentlyBoughtTogetherPropsUiComponentProps<AlgoliaHit<THit>>, 'items' | 'itemComponent' | 'headerComponent' | 'emptyComponent' | 'layout' | 'status' | 'sendEvent'>;
5export type FrequentlyBoughtTogetherProps<THit extends BaseHit> = Omit<FrequentlyBoughtTogetherPropsUiComponentProps<AlgoliaHit<THit>>, keyof UiProps<THit>> & UseFrequentlyBoughtTogetherProps<THit> & {
6 itemComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['itemComponent'];
7 headerComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['headerComponent'];
8 emptyComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['emptyComponent'];
9 layoutComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['layout'];
10};
11export declare function FrequentlyBoughtTogether<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: FrequentlyBoughtTogetherProps<THit>): JSX.Element;
12export {};