{url}
)} {description && ({description}
)} {children}{children}); /** * Shared CitationLink component that renders a citation as a hover card badge * Used across message-list-item, artifact-file-detail, and message-group * * When citation is provided, displays title and snippet from the citation. * When citation is omitted, falls back to displaying the domain name extracted from href. */ export type CitationLinkProps = { citation?: Citation; href: string; children: React.ReactNode; }; export const CitationLink = ({ citation, href, children, }: CitationLinkProps) => { const domain = extractDomainFromUrl(href); return (