UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

21 lines (20 loc) 485 B
import { jsx as n } from "react/jsx-runtime"; import { createContext as r, useContext as i } from "react"; const t = r(void 0); function u({ children: e, wikiContext: o }) { return /* @__PURE__ */ n(t.Provider, { value: o, children: e }); } const c = t.Consumer; function C() { return i(t) ?? {}; } export { t as SynapseWikiContext, c as SynapseWikiContextConsumer, u as SynapseWikiContextProvider, C as useWikiContext }; //# sourceMappingURL=SynapseWikiContext.js.map