UNPKG

@elastic/eui

Version:

Elastic UI Component Library

21 lines (19 loc) 883 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.withEuiToolTip = void 0; var _react = _interopRequireDefault(require("react")); var _tool_tip = require("./tool_tip"); var _react2 = require("@emotion/react"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ var withEuiToolTip = exports.withEuiToolTip = function withEuiToolTip(element, tooltipProps) { return tooltipProps ? (0, _react2.jsx)(_tool_tip.EuiToolTip, tooltipProps, element) : element; };