import classNames from 'classnames' import { ReactNode } from 'react' import Card from 'components/Card' import CloseIcon from 'components/Icons/close.svg' interface Props { children?: ReactNode | string content?: ReactNode | string className?: string open: boolean setOpen?: (open: boolean) => void } const Modal = ({ children, content, className, open, setOpen }: Props) => { const onClickAway = () => { if (setOpen) setOpen(false) } return open ? (
{setOpen && ( )} {children ? children : content}
) : null } export default Modal