@botonic/react
Version:
Build Chatbots using React
18 lines • 794 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getKeywordEventConfig = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const core_1 = require("@botonic/core");
const quote_right_1 = require("../icons/quote-right");
const getKeywordEventConfig = (data) => {
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Keyword matched ", (0, jsx_runtime_1.jsxs)("span", { children: ["- \"", data.nlu_keyword_name, "\""] })] }));
return {
action: core_1.EventAction.Keyword,
title,
component: null,
icon: (0, jsx_runtime_1.jsx)(quote_right_1.QuoteRightSvg, {}),
collapsible: false,
};
};
exports.getKeywordEventConfig = getKeywordEventConfig;
//# sourceMappingURL=keyword.js.map