@payfit/unity-components
Version:
10 lines (9 loc) • 341 B
JavaScript
import { createContext as e, useContext as t } from "react";
//#region src/components/pagination/PaginationContext.tsx
var n = e(null), r = () => {
let e = t(n);
if (!e) throw Error("usePaginationContext must be used within a Pagination component");
return e;
};
//#endregion
export { n as PaginationContext, r as usePaginationContext };