// src/components/lexical/LinkPreviewCard.tsx import Image from 'next/image' export function LinkPreviewCard({ url, title, description, imageUrl, }: { url: string title?: string description?: string imageUrl?: string }) { let host = url try { host = new URL(url).host } catch {} return (
{host}
{title &&
{title}
} {description &&
{description}
}
{imageUrl && ( )}
) }