import React from 'react' ; import UploadForm from './UploadForm' ; export default { title : 'Teleport/Console/FileTransfer/UploadWithFiles' , } ; export const UploadWithFiles = ( ) => { const ref = React . useRef < UploadForm > ( ) ; React . useEffect ( ( ) => { const blobs = [ { length : 4343 } , { length : 4343 } ] ; ref . current . addFiles ( [ ] , blobs ) ; } , [ ] ) ; return < UploadForm ref = { ref } onUpload = { ( ) => null } />; } ;