// @flow import * as React from 'react'; import classnames from 'classnames'; type Props = { body: string, label?: string, children: ?React.Node, icon: ?boolean, direction: string, onFormField?: boolean, }; class ToolTip extends React.PureComponent { static defaultProps = { direction: 'bottom', }; render() { const { children, label, body, icon, direction, onFormField } = this.props; const tooltipContent = children || label; return ( {tooltipContent} {body} ); } } export default ToolTip;