import React, { Fragment, useRef } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { ExclamationIcon } from '@heroicons/react/outline'; type ConfirmationModalProps = { open: boolean; onClose: () => void; title: string; body: string; onDeleteAction?: () => void; }; export const ConfirmationModal = ({ open, onClose, title, body, onDeleteAction }: ConfirmationModalProps) => { const cancelButtonRef = useRef(null); return (
{/* This element is to trick the browser into centering the modal contents. */}
{title}

{body}

); };