import { ComponentType } from 'react' ; const getDisplayName = < Props > ( Component ) => Component . displayName || Component . name || typeof Component ; const wrapDisplayName = < Props > ( Component , hocName ) : string => `${ hocName }(${ getDisplayName ( Component ) })` ; export default wrapDisplayName ;