import type { MapSummary } from "../lib/types"; function MapCard({ map, onSelect }: { map: MapSummary; onSelect: () => void }) { return (
{map.title}
{map.subtitle &&
{map.subtitle}
} {map.count != null && (
{map.count} places
)}
); } export function MapIndex({ maps, onSelect }: { maps: MapSummary[]; onSelect: (id: string) => void; }) { return (

Maps

{maps.length === 0 && (
No maps yet.
)}
{maps.map(m => ( onSelect(m.id)} /> ))}
); }