import { ReactSymbol , REACT_MEMO_TYPE } from './symbols' ; export const isMemoComponent = ( Component ) : Component is React . MemoExoticComponent < any > & { compare : ( state : any , props : any ) => boolean ; } => Component . $$typeof === REACT_MEMO_TYPE ;