- {currentLocation && (
-
+ {/* Quick actions */}
+
+
+
+
+ {/* Search input */}
+
+
{
+ setSearchQuery(e.target.value);
+ setLocationMode('search');
+ }}
+ onKeyDown={(e) => e.key === 'Enter' && (e.preventDefault(), searchAddress())}
+ placeholder="Search for an address..."
+ className="w-full bg-white/10 border border-white/20 rounded-lg px-3 py-2 pr-10 text-white placeholder:text-white/40 focus:outline-none focus:border-rmaps-primary"
+ />
+
+
+
+ {/* Search results */}
+ {searchResults.length > 0 && (
+
+ {searchResults.map((result) => (
+
+ ))}
+
)}
-
+ {/* Manual coordinates toggle */}
+
- {!useCurrentLocation && (
-
+ {/* Manual coordinates input */}
+ {locationMode === 'manual' && (
+
)}
- {!hasLocation && !useCurrentLocation && (
-
- Share your location first, or enter coordinates manually
-
+ {/* Selected location display */}
+ {selectedLocation && locationMode !== 'manual' && (
+
+
{selectedLocation.name || 'Selected location'}
+
+ {selectedLocation.lat.toFixed(6)}, {selectedLocation.lng.toFixed(6)}
+
+
+ )}
+
+ {/* Error display */}
+ {locationError && (
+
{locationError}
)}
@@ -173,7 +334,7 @@ export default function MeetingPointModal({