UNPKG

1.17 kBTypeScriptView Raw
1import type { TrendingItemsProps as TrendingItemsUiComponentProps } from 'instantsearch-ui-components';
2import type { BaseHit } from 'instantsearch.js';
3import type { UseTrendingItemsProps } from 'react-instantsearch-core';
4type UiProps<TItem extends BaseHit> = Pick<TrendingItemsUiComponentProps<TItem>, 'items' | 'itemComponent' | 'headerComponent' | 'emptyComponent' | 'layout' | 'status' | 'sendEvent'>;
5export type TrendingItemsProps<TItem extends BaseHit> = Omit<TrendingItemsUiComponentProps<TItem>, keyof UiProps<TItem>> & UseTrendingItemsProps & {
6 itemComponent?: TrendingItemsUiComponentProps<TItem>['itemComponent'];
7 headerComponent?: TrendingItemsUiComponentProps<TItem>['headerComponent'];
8 emptyComponent?: TrendingItemsUiComponentProps<TItem>['emptyComponent'];
9 layoutComponent?: TrendingItemsUiComponentProps<TItem>['layout'];
10};
11export declare function TrendingItems<TItem extends BaseHit = BaseHit>({ facetName, facetValue, limit, threshold, fallbackParameters, queryParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: TrendingItemsProps<TItem>): JSX.Element;
12export {};