import React from 'react' function formatDate(dateStr) { if (!dateStr) return '' try { return new Date(dateStr).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric', }) } catch { return '' } } export default function HomeNews({ items }) { if (!Array.isArray(items) || items.length === 0) return null return (

📰 News & Updates

All news →
{items.map((item) => ( {item.title} {item.date && ( {formatDate(item.date)} )} ))}
) }