"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BE_HOTEL_LOCATION_MAP_BLOCK = void 0;
exports.OriginalHotelLocationMapBlock = OriginalHotelLocationMapBlock;
exports.default = BEHotelLocationMapBlock;
const hooks_1 = require("../../../hooks/index.js");
const react_1 = __importDefault(require("react"));
const BEMapWidget_1 = __importDefault(require("../../summary/BEMapWidget"));
const DIProvider_1 = require("../../../providers/DIProvider");
exports.BE_HOTEL_LOCATION_MAP_BLOCK = 'BEHotelLocationMapBlock';
function OriginalHotelLocationMapBlock() {
    const { hotel } = (0, hooks_1.useCurrentHotel)();
    if (!hotel)
        return react_1.default.createElement(react_1.default.Fragment, null);
    return react_1.default.createElement(react_1.default.Fragment, null, hotel.latitude && hotel.longitude ? react_1.default.createElement(BEMapWidget_1.default, { mapLatLng: { lat: hotel.latitude, lng: hotel.longitude } }) : null);
}
function BEHotelLocationMapBlock() {
    return (0, DIProvider_1.withDI)(exports.BE_HOTEL_LOCATION_MAP_BLOCK, OriginalHotelLocationMapBlock, null);
}
//# sourceMappingURL=BEHotelLocationMapBlock.js.map