import React from "react"; import { observer } from "mobx-react"; import { RefreshCw } from "lucide-react"; import { TIssue } from "@plane/types"; // types import { useProject } from "@/hooks/store"; type Props = { isSubmitting: "submitting" | "submitted" | "saved"; issueDetail?: TIssue; }; export const IssueUpdateStatus: React.FC = observer((props) => { const { isSubmitting, issueDetail } = props; // hooks const { getProjectById } = useProject(); return ( <> {issueDetail && (

{getProjectById(issueDetail.project_id)?.identifier}-{issueDetail.sequence_id}

)}
{isSubmitting !== "submitted" && isSubmitting !== "saved" && ( )} {isSubmitting === "submitting" ? "Saving..." : "Saved"}
); });