16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
exports.__esModule = true;
|
||
|
|
var getDisplayName = function getDisplayName(Component) {
|
||
|
|
if (typeof Component === 'string') {
|
||
|
|
return Component;
|
||
|
|
}
|
||
|
|
|
||
|
|
if (!Component) {
|
||
|
|
return undefined;
|
||
|
|
}
|
||
|
|
|
||
|
|
return Component.displayName || Component.name || 'Component';
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.default = getDisplayName;
|