+
+ Credit Approval Memo
+
+
+ {/* Header fields */}
+
+
+
+ Relationship:
+
+ {memoProfile.relationship}
+
+
+
+ Date:
+
+ {memoProfile.date}
+
+
+
+ Loan Officer:
+
+ {memoProfile.loanOfficer}
+
+
+
+ Credit Analyst:
+
+ {memoProfile.creditAnalyst}
+
+
+
+ {/* PROFILE section */}
+
+
+ PROFILE
+
+
+ {/* Left column */}
+
+
+
+
+
+
+
+
+
{memoProfile.naicsDesc}
+
+ {/* Right column */}
+
+
+
+
+ {/* Loan Request Purpose */}
+
+
Loan Request Purpose:
+
+ Micro equipment loan to purchase a Commercial Truck (VIN
+ 7FZKBYA22MN014983)
+
+
+
+ {/* Notes */}
+
+
+ {/* Concentration */}
+
+
Concentration: 26
+
Annual Revenue of $ 200K
+
Agg Exposure $81,900
+
+
+ {/* Second notes block */}
+
{memoNotes2}
+
+ {/* Request header row */}
+
+ 12345-6
+ Request 5556677
+
+ New Money-
+
+ 5556677
+
+
+
+ {/* Loan type grid */}
+
+
+ HOMA{" "}
+ NO
+
+
+ CRA{" "}
+ NO
+
+
+ CD{" "}
+ NO
+
+
+ REG-0{" "}
+ NO
+
+
+ TDR{" "}
+ NO
+
+
+ HVCRE{" "}
+ NO
+
+
+ Gov. Guarantee{" "}
+ NO
+
+
+ Participation:{" "}
+ NO
+
+
+
+ Policy Exception:
+ {" "}
+ NO
+
+
+ FLOOD{" "}
+ NO
+
+
+
+ {/* Borrower/Co-Borrower table */}
+
+
+ BORROWER/CO-BORROWER INFORMATION
+
+
+
+
+ |
+ Name
+ |
+
+ Global DSCR
+
+ Current
+ |
+
+ Proj
+ |
+
+ Liquidity
+ |
+
+ Adj.
+
+ Net Worth
+ |
+
+ Net Worth
+ |
+
+ DTI
+ |
+
+ DSCR
+
+ Before/After
+ |
+
+ Stmt Date
+ |
+
+ Score
+ |
+
+
+
+
+
+ TILBRAE LOGISTICS GROUP -
+ Borrower
+ |
+ 0.00 |
+ 0.00 |
+ |
+ |
+ |
+ N/A |
+ 0.00/0.00 |
+ |
+ N/A |
+
+
+
+
+
+ );
+}
+
+function ProfileRow({ label, value }: { label: string; value: string }) {
+ return (
+
+ {/* Rule label with dot */}
+
+
+ {/* Agent evaluation */}
+ {rule.agentEval !== null && (
+
+
+ Agent evaluation:{" "}
+ {rule.agentEval}
+
+ {rule.agentReasoning && (
+
{rule.agentReasoning}
+ )}
+
+ )}
+
+ {/* Human evaluation */}
+
+ {rule.agentEval !== null && (
+
+ Human evaluation
+
+ )}
+
+
+ {rule.showHumanButtons === "yes_no_na" && (
+ <>
+ Yes
+ No
+ N/A
+
+
+
+ >
+ )}
+
+ {rule.showHumanButtons === "yes_person_minus" && (
+ <>
+
+ Yes
+
+
+
+
+
+
+
+ >
+ )}
+
+ {rule.showHumanButtons === "no_person_minus" && (
+ <>
+
+ No
+
+
+
+
+
+
+
+ >
+ )}
+
+ {rule.showHumanButtons === "inconclusive_needs_review" && (
+ <>
+
+ Inconclusive
+
+
+
+
+ Needs review
+
+
+ >
+ )}
+
+
+
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Main Export
+// ---------------------------------------------------------------------------
+
+export function HaidyThemeLoanQC() {
+ const [currentCategory] = useState(1);
+ const totalCategories = 6;
+
+ // Independent zoom state for each document pane
+ const [leftZoom, setLeftZoom] = useState(1);
+ const [rightZoom, setRightZoom] = useState(1);
+
+ const ZOOM_STEP = 0.1;
+ const ZOOM_MIN = 0.5;
+ const ZOOM_MAX = 2;
+
+ const clampZoom = (z: number) => Math.min(ZOOM_MAX, Math.max(ZOOM_MIN, z));
+
+ return (
+
+ {/* ── Top header bar — same bg as left pane, extends behind ── */}
+
+
+
+
+
+
+ Loan processing - QC
+
+
+
+
+
+ {/* ── Section header — same bg, full-width horizontal line below ── */}
+
+
+
+
+ Section name
+
+
CRE #00000000000-00
+
+
+
+ {/* ── Main content: 12-col grid, 16px gutters ── */}
+
+ {/* Left sidebar — spans 3 cols, no rounding, flush to left edge */}
+
+
+ {/* Document area — spans 9 cols, no container, sits on background */}
+
+ {/* Left document pane */}
+
+
+
+ setLeftZoom((z) => clampZoom(z + ZOOM_STEP))
+ }
+ onZoomOut={() =>
+ setLeftZoom((z) => clampZoom(z - ZOOM_STEP))
+ }
+ />
+
+
+ {/* Vertical divider */}
+
+
+ {/* Right document pane */}
+
+
+
+ setRightZoom((z) => clampZoom(z + ZOOM_STEP))
+ }
+ onZoomOut={() =>
+ setRightZoom((z) => clampZoom(z - ZOOM_STEP))
+ }
+ />
+
+
+
+
+ );
+}