import React, { useState } from "react"; import { Dialog, Transition } from "@headlessui/react"; // icons import { AlertTriangle } from "lucide-react"; // ui import { Button } from "@plane/ui"; // types import type { IInboxIssue } from "types"; type Props = { data: IInboxIssue; isOpen: boolean; onClose: () => void; onSubmit: () => Promise; }; export const DeclineIssueModal: React.FC = ({ isOpen, onClose, data, onSubmit }) => { const [isDeclining, setIsDeclining] = useState(false); const handleClose = () => { setIsDeclining(false); onClose(); }; const handleDecline = () => { setIsDeclining(true); onSubmit().finally(() => setIsDeclining(false)); }; return (

Decline Issue

Are you sure you want to decline issue{" "} {data?.project_detail?.identifier}-{data?.sequence_id} {""}? This action cannot be undone.

); };