Artifact Content
Not logged in

Artifact cfc7316a7ef711fa6cc44f93aecaa2b42bee0fee:


import React, { Component } from 'react'
import PropTypes from 'prop-types'

import ReactTooltip from 'react-tooltip'

export default class HelpIcon extends Component {
  static propTypes = {
    text: PropTypes.string
  }

  render () {
    const { text } = this.props

    return (
      <span>
        <i className='fa fa-question-circle' data-tip={text} />

        <ReactTooltip />
      </span>
    )
  }
}