import React from 'react';
import style from './modalToIssueOrderUnregisterUser.module.sass';
import Modal from 'react-modal';
import ToIssueOrderUnregisterUserForm from '../../forms/toIssueOrderUnregisterUserForm/toIssueOrderUnregisterUserForm';


Modal.setAppElement('#root');

const ModalToIssueOrderUnregisterUser = (props) => {
    const {isOpen, onRequestClose, orderGoodsData} = props;

    return(
        <>
            <Modal
                isOpen={isOpen}
                onRequestClose={onRequestClose}
                overlayClassName={style.overlay}
                className={style.modalMainContainer}
                shouldCloseOnOverlayClick={false}
            >
                <div className={style.contentContainer}>
                    <ToIssueOrderUnregisterUserForm
                        orderGoodsData={orderGoodsData}
                    />
                </div>
            </Modal>
        </>
    );
};

export default ModalToIssueOrderUnregisterUser;