import React, { useRef, useState } from "react"; // headless ui import { Dialog, Transition } from "@headlessui/react"; // icons import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; // ui import { Button } from "ui"; type Props = { isOpen: boolean; onClose: () => void; handleDelete: () => void; data?: any; }; const ConfirmWorkspaceMemberRemove: React.FC = ({ isOpen, onClose, data, handleDelete }) => { const [isDeleteLoading, setIsDeleteLoading] = useState(false); const cancelButtonRef = useRef(null); 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 workspace. This action cannot be undone.

); }; export default ConfirmWorkspaceMemberRemove;