import type { ReactNode } from "react"; import { FileText } from "lucide-react"; import { Link } from "@/lib/router"; import { cn } from "@/lib/utils"; /** * Compact document affordance shared by saved plans and authored document links. * `card` is a standalone padded box; `inline` sits in running text (markdown * paragraphs) and must not grow taller than the text line it is part of. */ export function SidebarDocumentLink({ href, children, ariaLabel, testId, className, onPointerEnter, onFocus, variant = "card" }: { href: string; children: ReactNode; ariaLabel?: string; testId?: string; className?: string; onPointerEnter?: () => void; onFocus?: () => void; variant?: "card" | "inline"; }) { const inline = variant === "inline"; return {children} ; }