UNPKG

@botonic/react

Version:

Build Chatbots using React

26 lines 767 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({ params: {}, session: {}, getUserCountry: () => '', getUserLocale: () => '', getSystemLocale: () => '', closeWebview: () => __awaiter(void 0, void 0, void 0, function* () { return undefined; }), }); //# sourceMappingURL=contexts.js.map