import type { QuoteDetail } from "@/lib/frontend/types";
import { PRIORITY1_MANUAL_FOLLOWUP_ERROR_CODE } from "@/modules/priority1/constants";

/** 已完成但无金额、需人工跟进的 Priority1 询价 */
export function isPriority1ManualFollowupDetail(
  detail: Pick<QuoteDetail, "status" | "error_code">,
): boolean {
  return (
    detail.status === "done" &&
    detail.error_code === PRIORITY1_MANUAL_FOLLOWUP_ERROR_CODE
  );
}
