UNPKG

@itwin/core-react

Version:

A react component library of iTwin.js UI general purpose components

18 lines 702 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Utilities */ /** Gets the display name for a React component. * @internal */ export const getDisplayName = (component) => { if (component.displayName) return component.displayName; if (component.name) return component.name; return "Component"; }; //# sourceMappingURL=getDisplayName.js.map