lbry-desktop/ui/modal/modalTransactionFailed/view.jsx
2021-07-19 17:40:44 -04:00

26 lines
643 B
JavaScript

// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import { SITE_HELP_EMAIL } from 'config';
type Props = {
closeModal: () => void,
};
class ModalTransactionFailed extends React.PureComponent<Props> {
render() {
const { closeModal } = this.props;
return (
<Modal isOpen contentLabel={__('Transaction failed')} title={__('Transaction failed')} onConfirmed={closeModal}>
<p>
{__('Sorry about that. Contact %SITE_HELP_EMAIL% if you continue to have issues.', {
SITE_HELP_EMAIL,
})}
</p>
</Modal>
);
}
}
export default ModalTransactionFailed;