@botonic/react
Version:
Build Chatbots using React
14 lines • 555 B
JavaScript
import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { EventAction } from '@botonic/core';
import { CodeSvg } from '../icons/code';
export const getBotActionEventConfig = (data) => {
const title = (_jsxs(_Fragment, { children: ["Bot action triggered ", _jsxs("span", { children: ["- ", data.payload] })] }));
return {
action: EventAction.BotAction,
title,
component: null,
icon: _jsx(CodeSvg, {}),
collapsible: false,
};
};
//# sourceMappingURL=bot-action.js.map