2022-06-24 02:58:32 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { Modal } from 'modal/modal';
|
|
|
|
import PreorderContent from 'component/preorderContent';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
uri: string,
|
|
|
|
doHideModal: () => void,
|
|
|
|
checkIfAlreadyPurchased: () => void,
|
|
|
|
};
|
|
|
|
|
2022-06-28 07:25:46 +02:00
|
|
|
class ModalPreorderContent extends React.PureComponent<Props> {
|
2022-06-24 02:58:32 +02:00
|
|
|
render() {
|
|
|
|
const { uri, doHideModal, checkIfAlreadyPurchased } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal onAborted={doHideModal} isOpen type="card">
|
2022-06-28 07:25:46 +02:00
|
|
|
<PreorderContent uri={uri} onCancel={doHideModal} checkIfAlreadyPurchased={checkIfAlreadyPurchased} />
|
2022-06-24 02:58:32 +02:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-28 07:25:46 +02:00
|
|
|
export default ModalPreorderContent;
|