// @flow import * as React from 'react' /** * Returns the verbose name of the provided React component. */ export default function getComponentName( component: React.Component, ): string { return component.displayName || component.name || 'Component' }