UNPKG

@1771technologies/lytenyte-pro

Version:

12 lines (11 loc) 360 B
import { jsx } from "react/jsx-runtime"; import { createContext, useContext } from "react"; const context = createContext(null); function AnchorProvider(props) { return /* @__PURE__ */ jsx(context.Provider, { value: props.anchor, children: props.children }); } const useAnchor = () => useContext(context); export { AnchorProvider as A, useAnchor as u };