import { FunctionComponent } from 'react' ; import { EnhancerResult , StringKeyMap } from '../types' ; export default ( props ) => ( ) : EnhancerResult => { return { dependencies : { } , initialize : '' , props : [ ] , transformComponent : ( component ) : FunctionComponent => { Object . keys ( props ) . forEach ( ( key ) => { component [ key ] = props [ key ] ; } ) ; return component ; } , } ; } ;