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

23 lines (22 loc) 651 B
import { jsx as i } from "react/jsx-runtime"; import { createContext as s, useContext as r } from "react"; const t = s(void 0); function u(o) { const { context: n, children: e } = o; return /* @__PURE__ */ i(t.Provider, { value: n, children: e }); } const x = t.Consumer; function C() { const o = r(t); if (o === void 0) throw new Error( "useApplicationSessionContext must be used within an ApplicationSessionContextProvider" ); return o; } export { x as ApplicationSessionContextConsumer, u as ApplicationSessionContextProvider, C as useApplicationSessionContext }; //# sourceMappingURL=ApplicationSessionContext.js.map