"use client"; /** * A passage shared from the library, rendered as a quotation. * * Tapping it returns the reader to the exact phrase: the stored path carries * the `?hl=` fragment that TextHighlighter resolves on arrival, scrolling to * the passage and flashing it. * * The path is always app-relative — the BFF rejects anything else — so this * can navigate with the router rather than leaving the app. */ import { useRouter } from "next/navigation"; import { Quote } from "lucide-react"; import type { Attachment } from "@/lib/chat"; export function QuoteCard({ attachment }: { attachment: Attachment }) { const router = useRouter(); const path = attachment.url ?? ""; const passage = attachment.description ?? ""; return ( ); }