"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = HotelCardList;
const react_1 = __importDefault(require("react"));
const HotelCard_1 = __importDefault(require("./HotelCard"));
const NoHotelsAvailable_1 = __importDefault(require("./NoHotelsAvailable"));
function HotelCardList({ hotelList }) {
    return (hotelList === null || hotelList === void 0 ? void 0 : hotelList.length) > 0 ? (react_1.default.createElement("div", { className: "row" }, hotelList.map((hotel, index) => {
        return (react_1.default.createElement("div", { key: `${hotel.hotelID}-${index}`, className: "col-md-4 u-marg-bottom--heavy" },
            react_1.default.createElement(HotelCard_1.default, { hotel: hotel })));
    }))) : (react_1.default.createElement(NoHotelsAvailable_1.default, null));
}
//# sourceMappingURL=HotelCardList.js.map