@payfit/unity-components
Version:
13 lines (12 loc) • 355 B
JavaScript
import { generatePaginationWithWindow as e } from "../utils/pagination-window.js";
import { useMemo as t } from "react";
//#region src/components/pagination/hooks/use-pagination-window.ts
function n({ pageCount: n, currentPage: r, windowSize: i = 7 }) {
return t(() => e(n, r, i), [
n,
r,
i
]);
}
//#endregion
export { n as usePaginationWindow };