import { useRef } from 'react' import { CSSTransition } from 'react-transition-group'; import Icon from './Icon' import { faXmark } from '@fortawesome/free-solid-svg-icons'; export interface Props { title?: string, isOpen: boolean, onClose: (...args: any[]) => any, onOpened?: (...args: any[]) => any, onClosed?: (...args: any[]) => any, className?: string, footer?: any, children?: any } const Modal = ({ title, isOpen, onClose, onOpened, onClosed, children, footer, className }: Props): JSX.Element => { const modal = useRef(null) const overlay = useRef(null) return (