@spaced-out/ui-design-system
Version:
Sense UI components library
26 lines • 890 B
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { GenericObject } from '../../components/Table';
type ClassNames = Readonly<{
wrapper?: string;
}>;
export type InfinitePaginationProps = {
items: Array<GenericObject>;
width: string;
threshold?: number;
classNames?: ClassNames;
renderItem: (item: GenericObject, index: number) => React.ReactNode;
getItemKey?: (item: GenericObject, index: number) => string | number;
hasNextPage: boolean;
loadMoreItems: () => Promise<void>;
testId?: string;
} & ({
itemSize: (index: number) => number;
isVariableSizeList: true;
} | {
itemSize: number;
isVariableSizeList?: false;
});
export declare const InfinitePagination: Flow.AbstractComponent<InfinitePaginationProps, HTMLDivElement>;
export {};
//# sourceMappingURL=InfinitePagination.d.ts.map