import React, { FC, useEffect, useState } from 'react'; import GoogleMapReact from 'google-map-react'; import MarkerSVG from '../../assets/icons/marker.svg'; import css from './index.module.css'; export interface AddressMapProps { googleApiKey?: string; markerName?: string; position: CoordsProps; } export interface CoordsProps { latitude: number; longitude: number; } export interface GeoPositionProps { center: CoordsProps; zoom: number; } export const Marker = (props): JSX.Element => { const { name } = props; return (