import React, { Component } from 'react';
import './SearchResults.css';
class SearchResult extends Component {
badge(f) {
if (this.props.data.udf[f]) {
return (
{this.props.data.udf[f].label}{' '}
);
} else {
return null;
}
}
image() {
const src = this.props.data['image-url'];
if (src) {
return ();
} else {
return null;
}
}
render() {
return (
{this.props.data.description}
Day: {this.props.data.meetingDay.label}{" "} Time: {this.props.data.meetingTime.label}{" "} Location: {this.props.data['location-city']}
Group Leader: {this.props.data['leader-name']}{" "} ({this.props.data['leader-email']})
Found {results.length} groups
{results}