@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
18 lines (14 loc) • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = require("react");
const cloneWithTooltip = (tooltip, children) => {
if (!tooltip) return children;
return /*#__PURE__*/(0, _react.cloneElement)(tooltip, {
children
});
};
var _default = cloneWithTooltip;
exports.default = _default;