import { Fragment, useRef } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import React from 'react'; import { Button } from '../Button'; import { rdsOverlay } from '../../utils/tailwindClasses'; export interface ModalProps { children?: React.ReactNode; title?: String; description?: String; noButton?: boolean; isOpen: any; setIsOpen: any; hasOverlay?: boolean; } export const Modal = ({ children, title, description, noButton, isOpen, setIsOpen, hasOverlay = false, }: ModalProps) => { const cancelButtonRef = useRef(null); return ( setIsOpen(false)} >
{title}

{description}

{!noButton && (
{children}
)}
); };