import * as React from 'react';
import { useMap } from '../../hooks';
import { MapControl } from '../../models';
import GoogleControl from '../../providers/GoogleMap/Control';
import MapBoxControl from '../../providers/MapBox/Control';
import LeafletControl from '../../providers/Leaflet/Control';
function Control(props: MapControl) {
const { type } = useMap();
if (type === 'google') {
return ;
}
if (type === 'mapbox') {
return ;
}
if (type === 'leaflet') {
return ;
}
return null;
};
export default Control;