import React, { useState } from "react"; // headless ui import { Dialog, Transition } from "@headlessui/react"; // icons import { AlertTriangle } from "lucide-react"; // ui import { Button } from "@plane/ui"; type Props = { isOpen: boolean; onClose: () => void; handleDelete: () => void; data?: any; }; export const ConfirmProjectMemberRemove: React.FC = (props) => { const { isOpen, onClose, data, handleDelete } = props; 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.

); };