import Link from 'next/link'; import { TypeBadge } from '@/components/ui/badges'; import { Section } from '@/components/ui/section'; import { Unavailable } from '@/components/ui/unavailable'; import { fmtAgo, fmtDate, fmtInt } from '@/lib/format'; import { EVENT_TYPE_LABELS, routes } from '@/lib/site'; import type { HomePayload } from '@/lib/types'; export function LatestLaunches({ items }: { items: HomePayload['latest_launches'] }) { return (
{items.length === 0 ? ( ) : ( )}
); } export function RecentEvents({ items }: { items: HomePayload['events'] }) { return (
{items.length === 0 ? ( ) : ( )}
); } export function RecentReentries({ items }: { items: HomePayload['reentries'] }) { return (
{items.length === 0 ? ( ) : ( {items.map((r) => ( ))}
Object NORAD Type Decayed Country
{r.name} {r.norad_id ?? '—'} {fmtDate(r.decay_date)} {r.country_name ?? r.country_code ?? '—'}
)}

Decay dates come from the public catalogue; SatelliteIndex does not predict reentry locations.

); }