mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 00:11:28 +00:00
27 lines
735 B
JavaScript
27 lines
735 B
JavaScript
import React from "react";
|
|
import FilePrice from "component/filePrice";
|
|
import { Modal } from "modal/modal";
|
|
|
|
class ModalAffirmPurchase extends React.PureComponent {
|
|
render() {
|
|
const { metadata: { title } } = this.props;
|
|
|
|
return (
|
|
<Modal
|
|
type="confirm"
|
|
isOpen={modal == "affirmPurchase"}
|
|
contentLabel={__("Confirm Purchase")}
|
|
onConfirmed={this.onAffirmPurchase.bind(this)}
|
|
onAborted={closeModal}
|
|
>
|
|
{__("This will purchase")} <strong>{title}</strong> {__("for")}{" "}
|
|
<strong>
|
|
<FilePrice uri={uri} showFullPrice={true} look="plain" />
|
|
</strong>{" "}
|
|
{__("credits")}.
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ModalAffirmPurchase;
|