import React, { Component } from 'react';
import cls from 'classnames';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { Balloon as NextBalloon } from '@alifd/next';
class Balloon extends Component {
    render() {
        return (React.createElement(NextBalloon, Object.assign({}, this.props, { className: cls(this.props.className, {
                'next-balloon-with-title': this.props.title,
                'next-add-closable': this.props.closable,
            }), closable: this.props.closable ? this.props.closable : false })));
    }
}
Balloon.Tooltip = NextBalloon.Tooltip;
hoistNonReactStatics(Balloon, NextBalloon);
export default Balloon;
