import React, { useState } from "react"; import { observer } from "mobx-react"; import { AlertTriangle } from "lucide-react"; import { Dialog, Transition } from "@headlessui/react"; // hooks // icons import type { TIssue } from "@plane/types"; // ui import { Button } from "@plane/ui"; import { useProject } from "@/hooks/store"; // types type Props = { data: Partial; isOpen: boolean; onClose: () => void; onSubmit: () => Promise; }; export const DeleteInboxIssueModal: React.FC = observer(({ isOpen, onClose, onSubmit, data }) => { // states const [isDeleting, setIsDeleting] = useState(false); const { getProjectById } = useProject(); const handleClose = () => { setIsDeleting(false); onClose(); }; const handleDelete = () => { setIsDeleting(true); onSubmit().finally(() => handleClose()); }; return (

Delete Issue

Are you sure you want to delete issue{" "} {(data && data?.project_id && getProjectById(data?.project_id)?.identifier) || ""}- {data?.sequence_id} {""}? The issue will only be deleted from the inbox and this action cannot be undone.

); });