import { ChevronLeft, ChevronUp, Filter } from 'lucide-react' import { useState } from 'react' import { NomadLogo } from '../components/Layout/NomadLogo' import type { ContactsApi } from '../store/useContacts' import { Globe2D } from '../components/Globe/Globe2D' import './MapPage.css' interface MapPageProps { api: ContactsApi } export function MapPage({ api }: MapPageProps) { const [remindersOpen, setRemindersOpen] = useState(false) const { visible, focusCountry, focusCity, setFocusCountry, setFocusCity, setSelectedId, purposeFilter, setPurposeFilter, reminders, } = api const breadcrumb = focusCity ? `${focusCountry} · ${focusCity}` : focusCountry ? focusCountry : '全球视野' return (

NomadHub

数字游民人际操作系统

{( [ ['all', '全部'], ['business', '业务'], ['dating', '约会'], ] as const ).map(([key, label]) => ( ))}
{(focusCountry || focusCity) && ( )} {breadcrumb} {visible.length} 人
{ setFocusCountry(country) setFocusCity(null) }} onSelectCity={(city) => setFocusCity(city)} onSelectContact={(id) => setSelectedId(id)} />
{reminders.length > 0 && (
{remindersOpen && (
{reminders.map((c) => ( ))}
)}
)}

拖动旋转 · 滚轮/双指缩放 · 点击进入

) }