@botonic/react
Version:
Build Chatbots using React
13 lines • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getParsedAction = void 0;
const core_1 = require("@botonic/core");
const getParsedAction = (botonicAction) => {
const splittedAction = botonicAction.split(`${core_1.BotonicAction.CreateCase}:`);
if (splittedAction.length <= 1) {
return undefined;
}
return JSON.parse(splittedAction[1]);
};
exports.getParsedAction = getParsedAction;
//# sourceMappingURL=utils.js.map