import React from "react"; import { RefreshCw } from "lucide-react"; // types import { IIssue } from "types"; type Props = { isSubmitting: "submitting" | "submitted" | "saved"; issueDetail?: IIssue; }; export const IssueUpdateStatus: React.FC = (props) => { const { isSubmitting, issueDetail } = props; return ( <> {issueDetail && (

{issueDetail.project_detail?.identifier}-{issueDetail.sequence_id}

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