@difizen/ai-flow
Version:
Scalable, out-of-the-box, agent-oriented flow
22 lines • 592 B
JavaScript
import { Tooltip } from 'antd';
import React from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
export var TipPopup = function TipPopup(props) {
var title = props.title,
children = props.children;
if (title === null) {
return children;
}
return /*#__PURE__*/_jsx(Tooltip, {
color: "#fff",
title: /*#__PURE__*/_jsx("div", {
className: "text-gray-600 text-[13px]",
children: title
}),
arrow: false,
getTooltipContainer: function getTooltipContainer(trigger) {
return trigger.parentElement;
},
children: children
});
};