@botonic/react
Version:
Build Chatbots using React
8 lines • 319 B
JavaScript
import { BotonicAction } from '@botonic/core';
export const getParsedAction = (botonicAction) => {
const splittedAction = botonicAction.split(`${BotonicAction.CreateCase}:`);
if (splittedAction.length <= 1)
return undefined;
return JSON.parse(splittedAction[1]);
};
//# sourceMappingURL=utils.js.map