import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { MapType, MapsContext } from "../../gravity-blocks/context/mapsContext/mapsContext.js";
import GoogleMap from "./GoogleMap.js";
import YandexMap from "./YMap/YandexMap.js";
import './Map.css';
export const Map = (props) => {
    const { type } = React.useContext(MapsContext);
    switch (type) {
        case MapType.Yandex:
            return _jsx(YandexMap, { ...props });
        case MapType.Google:
            return _jsx(GoogleMap, { ...props });
        default:
            return null;
    }
};
export default Map;
//# sourceMappingURL=Map.js.map
