function decorateWithTooltip(tooltip, label, tooltipPlacement, Component, props) {
	if (!tooltip || !label) {
		return <Component {...props} />;
	}
	return (
		<TooltipTrigger label={label} tooltipPlacement={tooltipPlacement}>
			<span>
				<Component {...props} />
			</span>
		</TooltipTrigger>
	);
}
/**
 * This function wrap the button with a TooltipTrigger
 * @param {Element} btn the button element ( may be wrapped by overlay trigger )
 * @param {boolean} tooltip tell if the tooltip has to be showed
 * @param {string} label the label to show on the tooltip
 * @param {string} tooltipPlacement the tooltip placement
 */
This function wrap the button with a TooltipTrigger
@param {Element} btn the button element ( may be wrapped by overlay trigger )
@param {boolean} tooltip tell if the tooltip has to be showed
@param {string} label the label to show on the tooltip
@param {string} tooltipPlacement the tooltip placement
This function wrap the button with a TooltipTrigger @param { Element } btn the button element ( may be wrapped by overlay trigger ) @param { boolean } tooltip tell if the tooltip has to be showed @param { string } label the label to show on the tooltip @param { string } tooltipPlacement the tooltip placement
function decorateWithTooltip(tooltip, label, tooltipPlacement, Component, props) {
	if (!tooltip || !label) {
		return <Component {...props} />;
	}
	return (
		<TooltipTrigger label={label} tooltipPlacement={tooltipPlacement}>
			<span>
				<Component {...props} />
			</span>
		</TooltipTrigger>
	);
}
function decorateWithTooltip ( tooltip , label , tooltipPlacement , Component , props ) { if ( ! tooltip || ! label ) { return < Component { ... props } / > ; } return ( < TooltipTrigger label = { label } tooltipPlacement = { tooltipPlacement } > < span > < Component { ... props } / > < / span > < / TooltipTrigger > ) ; }
This function wrap the button with a TooltipTrigger
 @param {Element} btn the button element ( may be wrapped by overlay trigger )
 @param {boolean} tooltip tell if the tooltip has to be showed
 @param {string} label the label to show on the tooltip
 @param {string} tooltipPlacement the tooltip placement
This function wrap the button with a TooltipTrigger @param { Element } btn the button element ( may be wrapped by overlay trigger ) @param { boolean } tooltip tell if the tooltip has to be showed @param { string } label the label to show on the tooltip @param { string } tooltipPlacement the tooltip placement