UNPKG

@botonic/react

Version:

Build Chatbots using React

12 lines 467 B
"use strict"; 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