import React, { useRef, useState } from "react"; // headless ui import { Dialog, Transition } from "@headlessui/react"; // icons import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; // ui import { SecondaryButton, DangerButton } from "components/ui"; type Props = { isOpen: boolean; onClose: () => void; handleDelete: () => void; data?: any; }; const ConfirmProjectMemberRemove: React.FC = ({ isOpen, onClose, data, handleDelete }) => { const [isDeleteLoading, setIsDeleteLoading] = useState(false); const handleClose = () => { onClose(); setIsDeleteLoading(false); }; const handleDeletion = async () => { setIsDeleteLoading(true); handleDelete(); handleClose(); }; return (
Remove {data?.email}?

Are you sure you want to remove member-{" "} {data?.email}? They will no longer have access to this project. This action cannot be undone.

Cancel {isDeleteLoading ? "Removing..." : "Remove"}
); }; export default ConfirmProjectMemberRemove;