You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
732 B
30 lines
732 B
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
const ConfirmPageContainerError = (props, context) => {
|
|
const { errorMessage, errorKey } = props
|
|
const error = errorKey ? context.t(errorKey) : errorMessage
|
|
|
|
return (
|
|
<div className="confirm-page-container-error">
|
|
<img
|
|
src="/images/alert-red.svg"
|
|
className="confirm-page-container-error__icon"
|
|
/>
|
|
<div className="confirm-page-container-error__text">
|
|
{ `ALERT: ${error}` }
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
ConfirmPageContainerError.propTypes = {
|
|
errorMessage: PropTypes.string,
|
|
errorKey: PropTypes.string,
|
|
}
|
|
|
|
ConfirmPageContainerError.contextTypes = {
|
|
t: PropTypes.func,
|
|
}
|
|
|
|
export default ConfirmPageContainerError
|
|
|