mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
26 lines
585 B
JavaScript
26 lines
585 B
JavaScript
import React, {PropTypes, PureComponent} from 'react';
|
|
import autobind from 'autobind-decorator';
|
|
import Tooltip from './tooltip';
|
|
|
|
@autobind
|
|
class HelpTooltip extends PureComponent {
|
|
render () {
|
|
const {children, className, ...props} = this.props;
|
|
return (
|
|
<Tooltip {...props} className={className} message={children}>
|
|
<i className="fa fa-question-circle"/>
|
|
</Tooltip>
|
|
);
|
|
}
|
|
}
|
|
|
|
HelpTooltip.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
|
|
// Optional
|
|
position: PropTypes.string,
|
|
className: PropTypes.string
|
|
};
|
|
|
|
export default HelpTooltip;
|