@botonic/react
Version:
Build Chatbots using React
14 lines • 632 B
JavaScript
import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { EventAction } from '@botonic/core';
import { WindowRestoreSvg } from '../icons/window-restore';
export const getWebviewActionTriggeredEventConfig = (data) => {
const title = (_jsxs(_Fragment, { children: ["Webview action triggered ", _jsxs("span", { children: ["- ", data.webview_name] })] }));
return {
action: EventAction.WebviewActionTriggered,
title,
component: null,
icon: _jsx(WindowRestoreSvg, {}),
collapsible: false,
};
};
//# sourceMappingURL=webview-action-triggered.js.map