import React from "react"; import { RefreshCw } from "lucide-react"; // types import { useProject } from "hooks/store"; import { TIssue } from "@plane/types"; type Props = { isSubmitting: "submitting" | "submitted" | "saved"; issueDetail?: TIssue; }; export const IssueUpdateStatus: React.FC = (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"}
); };