19 lines
660 B
JavaScript
19 lines
660 B
JavaScript
|
import classNames from 'classnames';
|
||
|
import * as React from 'react';
|
||
|
export default function Popup(props) {
|
||
|
var children = props.children,
|
||
|
prefixCls = props.prefixCls,
|
||
|
id = props.id,
|
||
|
overlayInnerStyle = props.overlayInnerStyle,
|
||
|
className = props.className,
|
||
|
style = props.style;
|
||
|
return /*#__PURE__*/React.createElement("div", {
|
||
|
className: classNames("".concat(prefixCls, "-content"), className),
|
||
|
style: style
|
||
|
}, /*#__PURE__*/React.createElement("div", {
|
||
|
className: "".concat(prefixCls, "-inner"),
|
||
|
id: id,
|
||
|
role: "tooltip",
|
||
|
style: overlayInnerStyle
|
||
|
}, typeof children === 'function' ? children() : children));
|
||
|
}
|