import React, { useState } from "react"; import { Dialog, Transition } from "@headlessui/react"; // icons import { CheckCircleIcon } from "@heroicons/react/24/outline"; // ui import { Button } from "@plane/ui"; // types import type { IInboxIssue } from "types"; type Props = { data: IInboxIssue; isOpen: boolean; onClose: () => void; onSubmit: () => Promise; }; export const AcceptIssueModal: React.FC = ({ isOpen, onClose, data, onSubmit }) => { const [isAccepting, setIsAccepting] = useState(false); const handleClose = () => { setIsAccepting(false); onClose(); }; const handleAccept = () => { setIsAccepting(true); onSubmit().finally(() => setIsAccepting(false)); }; return (

Accept Issue

Are you sure you want to accept issue{" "} {data?.project_detail?.identifier}-{data?.sequence_id} {""}? Once accepted, this issue will be added to the project issues list.

); };