import React, { useState } from "react"; import { observer } from "mobx-react-lite"; 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: 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.

); });