import Link from 'next/link'; import { OrbitBadge, StatusBadge } from '@/components/ui/badges'; import { Section } from '@/components/ui/section'; import { Unavailable } from '@/components/ui/unavailable'; import { fmtInt, fmtKm, num } from '@/lib/format'; import { routes } from '@/lib/site'; import type { HomePayload } from '@/lib/types'; /** Trending (by views) โ€” or "Featured" when the view counters are still at zero. Honest label, real rows. */ export function FeaturedObjects({ items }: { items: HomePayload['trending'] }) { const hasViews = items.some((t) => (num(t.views) ?? 0) > 0); return (
{items.length === 0 ? ( ) : ( )}
); }