import React, { Component } from 'react' import PropTypes from 'prop-types' class Instructions extends Component { static propTypes = { mobile: PropTypes.bool, hasLearnedTopicCreation: PropTypes.bool } render() { const { hasLearnedTopicCreation, mobile } = this.props return hasLearnedTopicCreation ? null :
{!mobile &&
Double-click to
add a topic
} {mobile &&
Double-tap to
add a topic
}
} } export default Instructions