2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-06-23 23:35:25 +02:00
|
|
|
import { getSendErrors } from '../../../../../ducks/send';
|
2021-02-04 19:15:23 +01:00
|
|
|
import SendRowErrorMessage from './send-row-error-message.component';
|
2018-04-07 00:29:51 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export default connect(mapStateToProps)(SendRowErrorMessage);
|
2018-04-07 00:29:51 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
function mapStateToProps(state, ownProps) {
|
2018-04-07 00:29:51 +02:00
|
|
|
return {
|
|
|
|
errors: getSendErrors(state),
|
|
|
|
errorType: ownProps.errorType,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-04-27 02:38:14 +02:00
|
|
|
}
|