import { Fragment } from 'react'; import { Dialog, Transition } from '@headlessui/react'; // #TODO: USE THIS. Currently it's not. Kinda complicated to set up because of state. type Props = { isOpen: boolean; closeModal: () => void; submitModal: (userIdToBeDeleted: string) => void; userIdToBeDeleted: string; }; const DeleteUserDialog = ({ isOpen, closeModal, submitModal, userIdToBeDeleted, }: Props) => { const submit = () => { submitModal(userIdToBeDeleted); }; return (
Are you sure you want to remove this user from the workspace?

This action is irrevertible.

); }; export default DeleteUserDialog;