{"size": 497, "ext": "js", "max_stars_repo_path": "src/components/location_picker.js", "max_stars_repo_name": "nbw/whentochat", "max_stars_repo_stars_event_min_datetime": "2020-04-10T20:25:04.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-28T13:24:18.000Z", "max_issues_repo_path": "src/components/location_picker.js", "max_issues_repo_name": "nbw/whentochat", "max_issues_repo_issues_event_min_datetime": "2018-11-28T18:31:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-15T15:15:06.000Z", "max_forks_repo_path": "src/components/location_picker.js", "max_forks_repo_name": "nbw/whentochat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": 13, "max_forks_count": null, "avg_line_length": 19.1153846154, "max_line_length": 48, "alphanum_fraction": 0.615694165}
import React, { Component } from 'react'
import Geosuggest from 'react-geosuggest';

class LocationPicker extends Component {
  onSuggestSelect = (suggest) => {
    if (suggest) {
      this.props.stateCallback(suggest);
    }
  }

  render() {
    return (
      <>
        <Geosuggest
          placeholder={this.props.placeHolder}
          onSuggestSelect={this.onSuggestSelect}
          initialValue={this.props.initialValue}
        />
      </>
    )
  }
}

export default LocationPicker

