@algolia/react-instantsearch-widget-loadmore-with-progressbar
Version:
React InstantSearch widget that displays a load more button with a progress bar
24 lines (23 loc) • 1.3 kB
TypeScript
import type { LoadMoreWithProgressBarProvidedProps } from './connector';
import type { LoadMoreWithProgressBarExposedProps } from './widget';
export declare type ButtonComponentProps = {
translations: Record<keyof typeof translations, string>;
isSearchStalled: boolean;
refineNext: () => void;
};
export declare type LoadMoreWithProgressBarProps = LoadMoreWithProgressBarExposedProps & LoadMoreWithProgressBarProvidedProps & {
translate: (key: string, ...params: any) => string;
};
export declare const LoadMoreWithProgressBar: ({ nbSeenHits, nbTotalHits, isSearchStalled, refineNext, translate, buttonComponent: CustomButtonComponent, className, }: LoadMoreWithProgressBarProps) => JSX.Element;
declare const translations: {
loadMore: string;
searchStalled: string;
text: ({ nbSeenHits, nbTotalHits }: TextTranslationArgs) => string;
};
export declare type TextTranslationArgs = {
nbSeenHits: number;
nbTotalHits: number;
};
export declare type TranslationsType = Partial<typeof translations>;
export declare const LoadMoreWithProgressBarComponent: import("react-instantsearch-core").ConnectedComponentClass<LoadMoreWithProgressBarProps, import("react-instantsearch-core").TranslatableProvided, import("react-instantsearch-core").TranslatableExposed>;
export {};