@botonic/react
Version:
Build Chatbots using React
17 lines • 775 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSmartIntentEventConfig = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const core_1 = require("@botonic/core");
const icons_1 = require("../icons");
const getSmartIntentEventConfig = (data) => {
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Smart intent triggered ", (0, jsx_runtime_1.jsxs)("span", { children: ["- \"", data.nlu_intent_smart_title, "\""] })] }));
return {
action: core_1.EventAction.IntentSmart,
title,
component: null,
icon: (0, jsx_runtime_1.jsx)(icons_1.BrainSvg, {}),
};
};
exports.getSmartIntentEventConfig = getSmartIntentEventConfig;
//# sourceMappingURL=smart-intent.js.map