@botonic/react
Version:
Build Chatbots using React
18 lines • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRedirectFlowEventConfig = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const core_1 = require("@botonic/core");
const arrow_progress_1 = require("../icons/arrow-progress");
const getRedirectFlowEventConfig = (data) => {
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Redirected to flow ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.flow_target_name] })] }));
return {
action: core_1.EventAction.RedirectFlow,
title,
component: null,
icon: (0, jsx_runtime_1.jsx)(arrow_progress_1.ArrowProgressSvg, {}),
collapsible: false,
};
};
exports.getRedirectFlowEventConfig = getRedirectFlowEventConfig;
//# sourceMappingURL=redirect-flow.js.map