UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

35 lines (34 loc) 608 B
import { jsx as l } from "react/jsx-runtime"; import { createContext as c, useContext as C } from "react"; const t = c({ onPageChange: () => { }, onRotate: () => { }, onScroll: () => { }, onTextSelect: () => { } }), v = () => C(t), u = ({ children: e, onPageChange: o, onRotate: n, onScroll: r, onTextSelect: a }) => /* @__PURE__ */ l( t.Provider, { value: { onPageChange: o, onRotate: n, onScroll: r, onTextSelect: a }, children: e } ); export { t as EventCallbackContext, u as EventCallbackProvider, v as useEventCallbackContext };