lbry-desktop/ui/js/modal/modalInsufficientCredits/view.jsx

27 lines
723 B
React
Raw Normal View History

2017-07-15 20:44:50 +02:00
import React from "react";
import { Modal } from "modal/modal";
2017-08-26 05:21:26 +02:00
import { CurrencySymbol } from "component/common";
2017-07-15 20:44:50 +02:00
class ModalInsufficientCredits extends React.PureComponent {
render() {
const { addFunds, closeModal } = this.props;
return (
<Modal
isOpen={true}
type="confirm"
contentLabel={__("Not enough credits")}
confirmButtonLabel={__("Get Credits")}
2017-08-22 23:19:33 +02:00
abortButtonLabel={__("Not Now")}
2017-07-15 20:44:50 +02:00
onAborted={closeModal}
onConfirmed={addFunds}
>
2017-08-26 05:21:26 +02:00
<h3 className="modal__header">{__("More Credits Required")}</h3>
<p>You'll need more <CurrencySymbol /> to do this.</p>
2017-07-15 20:44:50 +02:00
</Modal>
);
}
}
export default ModalInsufficientCredits;