* A simple pagination hook that handles data slicing and page navigation. * * @example * const { currentPage, totalPages, paginatedData, nextPage, previousPage } = useSimplePagination({ * data: items, * itemsPerPage: 10 * }); * * @example With SimplePagination components * <SimplePagina
| 29 | */ |
| 30 | |
| 31 | interface UseSimplePaginationProps<T> { |
| 32 | data: T[] | null; |
| 33 | itemsPerPage: number; |
| 34 | initialPage?: number; |
| 35 | } |
| 36 | |
| 37 | interface UseSimplePaginationResult<T> { |
| 38 | currentPage: number; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…