import { Fragment, FC } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { ExclamationIcon } from '@heroicons/react/outline'; interface DeleteModalProps { open: boolean; toggleDeleteModal: () => void; customEvent: string; customEventId: string; deleteEvent: (customEventId: string) => void; updateFunction: () => void; } const DeleteModal: FC = ({ open, toggleDeleteModal, customEvent, customEventId, deleteEvent, updateFunction, }) => { function deleteAndClose() { deleteEvent(customEventId); updateFunction(); toggleDeleteModal(); } return (
Delete Custom Event

Are you sure you want to delete the{' '} {customEvent}{' '} customEvent?

); }; export default DeleteModal;