import React from 'react' ; interface FixSizeListItemProps < T > extends React . PropsWithChildren < { } > { data : { dataSet : T [ ] ; onSelect : any ; } ; index : number ; style : any ; } export interface MaskSearchableListItemProps < T > extends React . PropsWithChildren < { } > { data : T ; index : number ; onSelect ( item ) : void ; } export const MaskSearchableItemInList = < T > ( { children , data , index , style } ) => ( < div style = { style } > { React . createElement < MaskSearchableListItemProps < T > > ( children as React . FunctionComponent < MaskSearchableListItemProps < T > > , { data : data . dataSet [ index ] , index : index , onSelect : data . onSelect } ) } < /div>);