You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
367 B

  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = void 0;
  4. var getDisplayName = function getDisplayName(Component) {
  5. if (typeof Component === 'string') {
  6. return Component;
  7. }
  8. if (!Component) {
  9. return undefined;
  10. }
  11. return Component.displayName || Component.name || 'Component';
  12. };
  13. var _default = getDisplayName;
  14. exports.default = _default;