import React, { Component } from 'react' import PropTypes from 'prop-types' export default class SendRowErrorMessage extends Component { static propTypes = { errors: PropTypes.object, errorType: PropTypes.string, }; render () { const { errors, errorType } = this.props const errorMessage = errors[errorType] return ( errorMessage ?