2017-07-15 20:44:50 +02:00
|
|
|
import React from "react";
|
2017-08-18 19:09:40 +02:00
|
|
|
import { Modal } from "modal/modal";
|
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")}
|
|
|
|
abortButtonLabel={__("Cancel")}
|
|
|
|
onAborted={closeModal}
|
|
|
|
onConfirmed={addFunds}
|
|
|
|
>
|
|
|
|
{__("More LBRY credits are required to purchase this.")}
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalInsufficientCredits;
|