"use client"; import { useEffect, useRef, useState } from "react"; import { Button } from "@/components/ui/button"; import { X, Printer, Download, Loader2, ExternalLink } from "lucide-react"; /** * In-app PDF viewer modal for a generated quote PDF. * * Flow: * - On mount, fetches the PDF binary from the API as a Blob, creates * a local blob URL, and renders it inside an `