fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
16 lines • 489 B
TypeScript
interface UsePaginationProps {
totalItems: number;
currentPage: number;
itemsToShowEachSide: number;
}
interface UsePaginationResult {
items: (number | string)[];
totalPages: number;
rangeStart: number;
rangeEnd: number;
hasPrevPage: boolean;
hasNextPage: boolean;
}
export declare const usePagination: ({ totalItems, currentPage, itemsToShowEachSide, }: UsePaginationProps) => UsePaginationResult;
export {};
//# sourceMappingURL=usePagination.d.ts.map