--- import SectionHeading from './SectionHeading.astro'; import type { NewsItem } from '../lib/fallback-data'; import { formatDate } from '../lib/format'; type Props = { news: NewsItem[]; title?: string; description?: string; }; const { news, title = 'Latest news', description = 'Fresh updates, operational changes, and airport announcements.' } = Astro.props as Props; ---
{news.length > 0 ? ( news.map((item) => (

{formatDate(item.publish_date)}

{item.title}

{item.summary}

)) ) : (

No news items

Stay tuned for updates as they are published!

)}