import React from "react"; import ContextItem from "./ContextItem"; interface NewsDetailProps { news: { title: string; sections: { title: string; content: string; context: any[]; }[]; }; } const NewsDetail: React.FC = ({ news }) => { return (

{news.title}

{news.sections.map((section, index) => (

{section.title}

{section.content}

Related Context:

{section.context.map((item, i) => ( ))}
))}
); }; export default NewsDetail;