import Styles from './error-styles.scss' ; import React from 'react' ; type Props = { error : string ; reload : ( ) => void ; } ; const Error = ( { error , reload } ) => { return ( < div className = { Styles . errorWrap } > < span data - testid = "error" > { error } < /span> < button data - testid = "reload" onClick = { reload } > Tentar novamente < /button> < /div>); } ; export default Error ;