import React from 'react'; import { GoogleMap, MarkerF, InfoWindowF } from '@react-google-maps/api'; export interface LocationProps { lat?: string; lng?: string; location?: string; zoom?: number; } export const Location = ({ lat, lng, location, zoom = 15 }: LocationProps) => { const [showInfo, setShowInfo] = React.useState(false); const mapRef = React.useRef(); const onMapLoad = React.useCallback((map: any) => { mapRef.current = map; }, []); const options = { disableDefaultUI: true, zoomControl: true, fullscreenControl: true, panControl: true, streetViewControl: true, }; return (
{location}
View on Google Maps