import features from '@features/features' ; import ComponentStore from '@store/componentStore' ; import React from 'react' ; const DirectExecute = ( { featureKey } ) => { const { CluiStore , loaded } = ComponentStore ; const { setSubmitStatus , updateChosenFeatures } = CluiStore ; React . useEffect ( ( ) => { if ( loaded ) { updateChosenFeatures ( [ { name : featureKey as keyof typeof features } ] ) ; setSubmitStatus ( true ) ; } } , [ loaded ] ) ; if ( loaded ) { return < div />; } return < h3 style = { { color : 'white' } } > Loading FFmpeg ... . < /h3>; } ; export default DirectExecute ;