import React, { useState } from "react"; // headless ui import { Dialog, Transition } from "@headlessui/react"; // icons import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; // ui import { Button } from "@plane/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?.display_name}?

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

); }; export default ConfirmProjectMemberRemove;