import { readUploadedFileAsText } from './read_uploaded_file_as_text' ; export const handlePrivateKeyUpload = async ( files , callback ) => { if ( ! files || files . length < 1 ) { return null ; } const file = files [ 0 ] ; const text = await readUploadedFileAsText ( file ) ; callback ( text ) ; } ;