import React from 'react'; import Image from 'next/image'; import Link from 'next/link'; interface VisualLinkPreviewProps { url: string; title: string; summary: string; image: string; } export default function VisualLinkPreview({ url, title, summary, image }: VisualLinkPreviewProps) { const hostname = (() => { try { return new URL(url).hostname; } catch { return url; } })(); return (
{image ? ( {title} ) : (
)} {/* Industrial overlay */}
{/* Industrial accent corner */}
External Link {hostname}

{title}

{summary}

Read more
); }