import { FC } from "react"; import Modal from "react-modal"; import { GoX } from "react-icons/go"; import { ModalWindowProps } from "./Modal.interface"; import Button from "../button/Button"; import "./Modal.scss"; const customStyles = { content: { top: "40%", left: "50%", right: "auto", bottom: "auto", transform: "translate(-50%, -50%)", borderRadius: "15px", width: "600px", }, }; const ModalWindow: FC = ({ isOpen, closeModal, children, label = "" }) => { return (

{label}

{children}
); }; export default ModalWindow;