UNPKG

@org_educaresco/viam.profileimage

Version:
21 lines (18 loc) 486 B
import React from "react"; const FileLoadComponent = props => { const { _handleImageChange, imagePreview } = props; return ( <div className="previewComponent"> <form> <input className="fileInput" type="file" onChange={e => _handleImageChange(e)} accept=".jpg,.png" /> </form> <div className="imagePhotoSize">{imagePreview}</div> </div> ); }; export default FileLoadComponent;