Lade Infos …
; if (info.offline) returnInfotext gerade nicht erreichbar.
; if (!info.extract) return null; return ( <>{info.extract}
{info.url && Mehr bei Wikipedia ↗} > ); } function CountryInfo({ code, cities, otherCities, manual, onSelect, onClose, onMark, busy }) { const c = BY_CODE.get(code); const name = countryName(code); const info = useInfo({ kind: 'land', name: c?.name || name, code }); const visited = manual || cities.length > 0; const facts = [ (info?.capital || c?.capital?.length) && ['Hauptstadt', info?.capital || c.capital.join(', ')], info?.population && ['Einwohner', `${people(info.population)}${info.populationYear ? ` (${info.populationYear})` : ''}`], c?.area && ['Fläche', `${num(Math.round(c.area))} km²`], c?.subregion && ['Region', c.subregion], c?.languages?.length && ['Sprachen', c.languages.map((l) => safe((x) => languageName.of(x), l)).join(', ')], c?.currencies?.length && ['Währung', c.currencies.map((x) => safe((y) => currencyName.of(y), x)).join(', ')], ].filter(Boolean); return ( ); } function OtherChip({ city, onSelect, label = city.name }) { return ( ); } function CityInfo({ city, same, onSelect, onClose, onRemove, busy }) { const c = BY_CODE.get(city.country); const info = useInfo({ kind: 'stadt', name: city.name, code: String(city.geonameId), lat: city.lat, lon: city.lon }); const time = city.timezone && localTime(city.timezone); const facts = [ city.admin1 && ['Region', city.admin1], city.population && ['Einwohner', people(city.population)], city.elevation != null && ['Höhe', `${num(Math.round(city.elevation))} m`], time && ['Ortszeit', `${time} Uhr`], ].filter(Boolean); return ( ); }