import React, { Component } from 'react'
import PropTypes from 'prop-types'
class Follow extends Component {
render = () => {
const { ActiveMapper, isFollowing, onTopicFollow } = this.props
return
ActiveMapper && onTopicFollow()}>
{ActiveMapper ? isFollowing ? 'Unfollow' : 'Follow' : ''}
}
}
Follow.propTypes = {
isFollowing: PropTypes.bool,
onTopicFollow: PropTypes.func,
ActiveMapper: PropTypes.object
}
export default Follow