UNPKG

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