import React, { Fragment } from 'react'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; import Tooltip from '../../components/tooltip'; const LikeDataEntry: React.FunctionComponent = (props) => { // TODO: remove any const data_string = JSON.stringify({like: true}); return (
Like more

{ (props.value != null)? (props.value === 1)? `${props.value} person likes this building` : `${props.value} people like this building` : "0 people like this building so far - you could be the first!" }

); } LikeDataEntry.propTypes = { value: PropTypes.any, user_building_like: PropTypes.bool } export default LikeDataEntry;