import React from "react";

const Modal = ({ children, onClose }) => {
    return (
        <div className="modal-overlay">
            <div className="modal">
                {children}
                <button onClick={onClose}>Закрыть</button>
            </div>
        </div>
    );
};

export default Modal;