import React from 'react';

const Modal = ({...props}) => {
    return(
        <div id="openModal" className={"modal"}>
            <div className={"modal_dialog "+ " " + props.position}>
                <div className={"modal_content " + " " + props.styles}>
                    <div className="modal_body">
                        {props.children}
                    </div>
                </div>
            </div>
      </div>
    )
}

export default Modal;