2018-06-23 08:52:45 +02:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
2018-07-06 20:58:41 +02:00
|
|
|
const ConfirmPageContainerError = (props, context) => {
|
|
|
|
const { errorMessage, errorKey } = props
|
|
|
|
const error = errorKey ? context.t(errorKey) : errorMessage
|
|
|
|
|
2018-06-23 08:52:45 +02:00
|
|
|
return (
|
|
|
|
<div className="confirm-page-container-error">
|
|
|
|
<img
|
|
|
|
src="/images/alert-red.svg"
|
|
|
|
className="confirm-page-container-error__icon"
|
|
|
|
/>
|
2018-08-28 21:18:57 +02:00
|
|
|
<div className="confirm-page-container-error__text">
|
|
|
|
{ `ALERT: ${error}` }
|
|
|
|
</div>
|
2018-06-23 08:52:45 +02:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
ConfirmPageContainerError.propTypes = {
|
2018-07-06 20:58:41 +02:00
|
|
|
errorMessage: PropTypes.string,
|
|
|
|
errorKey: PropTypes.string,
|
|
|
|
}
|
|
|
|
|
|
|
|
ConfirmPageContainerError.contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2018-06-23 08:52:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ConfirmPageContainerError
|