mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
23 lines
756 B
JavaScript
23 lines
756 B
JavaScript
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
||
|
import React from 'react';
|
||
|
import classNames from 'classnames';
|
||
|
import TooltipPopoverWrapper, { propTypes } from './TooltipPopoverWrapper';
|
||
|
var defaultProps = {
|
||
|
placement: 'top',
|
||
|
autohide: true,
|
||
|
placementPrefix: 'bs-tooltip',
|
||
|
trigger: 'hover focus'
|
||
|
};
|
||
|
|
||
|
var Tooltip = function Tooltip(props) {
|
||
|
var popperClasses = classNames('tooltip', 'show', props.popperClassName);
|
||
|
var classes = classNames('tooltip-inner', props.innerClassName);
|
||
|
return /*#__PURE__*/React.createElement(TooltipPopoverWrapper, _extends({}, props, {
|
||
|
popperClassName: popperClasses,
|
||
|
innerClassName: classes
|
||
|
}));
|
||
|
};
|
||
|
|
||
|
Tooltip.propTypes = propTypes;
|
||
|
Tooltip.defaultProps = defaultProps;
|
||
|
export default Tooltip;
|