{"size": 338, "ext": "js", "max_stars_repo_path": "src/getDisplayName.js", "max_stars_repo_name": "justbrody/lenzr", "max_stars_repo_stars_event_min_datetime": "2019-07-05T21:08:14.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-12T07:08:20.000Z", "max_issues_repo_path": "src/getDisplayName.js", "max_issues_repo_name": "justbrody/lenzr", "max_issues_repo_issues_event_min_datetime": "2019-04-29T20:33:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T16:18:27.000Z", "max_forks_repo_path": "src/getDisplayName.js", "max_forks_repo_name": "justbrody/lenzr", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 33, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 76, "alphanum_fraction": 0.6952662722}
import { is } from 'ramda'

/**
 * Get the display name for the given component.
 * @function
 * @param {React.Component} comp - The react component
 * @return The display name for the component
 */
const getDisplayName = comp =>
  (is(String, comp) && comp) || comp.displayName || comp.name || 'Component'

export default getDisplayName
