import * as React from 'react'; import classnames from 'classnames'; import styles from './FlyTooltip.scss'; import ExclamationSVG from '../../../svg/exclamation.svg'; import IReactComponentProps from '../../../common/structures/IReactComponentProps'; interface IProps extends IReactComponentProps { content?: React.ReactNode; exclamation?: boolean; forceShowState?: boolean; hoverIntent?: boolean; position?: 'top' | 'bottom' | 'right' | 'center'; width: '300' | 'auto' | 'max-content'; } export default class FlyTooltip extends React.Component { static defaultProps: Partial = { exclamation: false, forceShowState: false, position: 'top', width: '300', }; render () { return (
{ this.props.exclamation && } {this.props.content}
{this.props.children}
); } }