MCPcopy
hub / github.com/TryGhost/Ghost / UseSimplePaginationProps

Interface UseSimplePaginationProps

apps/shade/src/hooks/use-simple-pagination.ts:31–35  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

29 */
30
31interface UseSimplePaginationProps<T> {
32 data: T[] | null;
33 itemsPerPage: number;
34 initialPage?: number;
35}
36
37interface UseSimplePaginationResult<T> {
38 currentPage: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…