UNPKG

@botonic/react

Version:

Build Chatbots using React

18 lines 768 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBotActionEventConfig = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const core_1 = require("@botonic/core"); const code_1 = require("../icons/code"); const getBotActionEventConfig = (data) => { const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Bot action triggered ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.payload] })] })); return { action: core_1.EventAction.BotAction, title, component: null, icon: (0, jsx_runtime_1.jsx)(code_1.CodeSvg, {}), collapsible: false, }; }; exports.getBotActionEventConfig = getBotActionEventConfig; //# sourceMappingURL=bot-action.js.map