This commit is contained in:
Andras Schmelczer 2026-06-02 20:14:32 +01:00
parent fbfebc651c
commit aab85fe32e
33 changed files with 2016 additions and 283 deletions

View file

@ -244,10 +244,7 @@ function legacyCombineResults(json: PlacesApiResponse, trimmed: string): SearchR
export type ViewportCenter = { lat: number; lng: number };
export function useLocationSearch(
mode?: string,
getViewportCenter?: () => ViewportCenter | null
) {
export function useLocationSearch(mode?: string, getViewportCenter?: () => ViewportCenter | null) {
const [query, setQuery] = useState('');
const [results, setResults] = useState<SearchResult[]>([]);
const [recentSearches, setRecentSearches] = useState<SearchResult[]>(readRecentSearches);