import { FunctionComponent } from 'react' ; import { ComponentTransform } from '../types' ; export default < T > ( hoc , transforms ) : FunctionComponent < T > => transforms . reduce ( ( acc , transform ) : FunctionComponent < T > => transform ( acc ) , hoc ) ;