import React, { useState } from "react"; import { observer } from "mobx-react-lite"; import { Dialog, Transition } from "@headlessui/react"; // hooks // icons import { AlertTriangle } from "lucide-react"; // ui import { Button } from "@plane/ui"; import { useProject } from "hooks/store"; // types import type { TIssue } from "@plane/types"; type Props = { data: TIssue; 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(() => setIsDeleting(false)); }; return (

Delete Issue

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

); });