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 }; }; }; } const ContextItem: React.FC = ({ item }) => { return (

{item.name}

{item.image && ( {item.name} )}
Read more
{item.provider[0].name} | {new Date(item.datePublished).toLocaleDateString()}
); }; export default ContextItem;