packageDocumentation module import * as React from "react" ; internal export const getDisplayName = ( component ) : string => { if ( component . displayName ) return component . displayName ; if ( component . name ) return component . name ; return "Component" ; } ;