synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
23 lines (22 loc) • 651 B
JavaScript
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