import React from "react"; import Image from "next/image"; import { ReactMarkdown } from "@/components/Markdown"; interface ContextItemProperties { item: { name: string; url: string; description: string; provider: { name: string; image?: { thumbnail: { contentUrl: string; }; }; }[]; datePublished: string; image?: { contentUrl: string; thumbnail: { contentUrl: string; width: number; height: number }; }; article?: string; score?: number; }; togglePreview: () => void; // Add togglePreview prop } const PreviewNewsDetail: React.FC = ({ item, togglePreview = () => {} }) => { return (

{item.name}

Visit
); }; export default PreviewNewsDetail;