import * as React from 'react' ; import { ReactElement } from 'react' ; import { SingleValueProps } from '../components/SingleValue' ; import { Fade } from './transitions' ; import { GroupBase } from '../types' ; export type SingleValueComponent = < Option , IsMulti extends boolean , Group extends GroupBase < Option > > ( props : SingleValueProps < Option , IsMulti , Group > ) => ReactElement ; const AnimatedSingleValue = ( WrappedComponent ) => < Option , IsMulti extends boolean , Group extends GroupBase < Option > > ( props ) => ( < Fade < SingleValueProps < Option , IsMulti , Group > > component = { WrappedComponent } { ... props } />); export default AnimatedSingleValue ;