import React , { ComponentType , FunctionComponent } from "react" ; export default function hideForwardRef ( component ) { const wrapped = ( props ) => React . createElement ( component , props ) ; wrapped . displayName = component . displayName ; return wrapped ; }