import*as r from"react";function e(e){void 0===e&&(e={});var{strict:t=!0,errorMessage:o="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=r.createContext(void 0);return a.displayName=n,[a.Provider,function e(){var n=r.useContext(a);if(!n&&t){var i=new Error(o);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,e),i}return n},a]}export{e as createContext};
//# sourceMappingURL=context.js.map
