UNPKG

@botonic/react

Version:

Build Chatbots using React

23 lines 677 B
import { __awaiter } from "tslib"; import { createContext } from 'react'; export const RequestContext = createContext({ getUserCountry: () => '', getUserLocale: () => '', getSystemLocale: () => '', setUserCountry: () => undefined, setUserLocale: () => undefined, setSystemLocale: () => undefined, params: {}, defaultDelay: 0, defaultTyping: 0, input: {}, session: {}, lastRoutePath: '', plugins: {}, }); export const WebviewRequestContext = createContext({ closeWebview: () => __awaiter(void 0, void 0, void 0, function* () { return undefined; }), params: {}, session: {}, }); //# sourceMappingURL=contexts.js.map