import React, { Component } from "react"; import Places from "./Maps"; interface MapHomeProps { newLat?: any; newLng?: any; draggable?: boolean; setLocation: (location: string) => void; } class MapHome extends Component { render() { const { newLat, newLng, draggable, setLocation } = this.props; const lat = newLat || -6.2393033; const lng = newLng || 106.8013579; return (
); } } export default MapHome;