"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const EmptyReservation_1 = __importDefault(require("./EmptyReservation"));
const ReservationItem_1 = __importDefault(require("./ReservationItem"));
const ReservationList = (props) => {
    const { reservationItems = [], actions, isCancelled, navPath } = props;
    if (!reservationItems.length) {
        return react_1.default.createElement(EmptyReservation_1.default, { isCancelled: isCancelled });
    }
    return (react_1.default.createElement("div", { className: "reservation-list" }, reservationItems.map((reservationItem, index) => (react_1.default.createElement(ReservationItem_1.default, { key: reservationItem.id, itineraryItem: reservationItem, disableMarginBottom: index === reservationItems.length - 1, actions: actions, onActionClick: props.onActionClick, showCancelledNotifications: props.showCancelledNotifications, defaultEventsExpanded: index === 0, navPath: navPath })))));
};
exports.default = ReservationList;
//# sourceMappingURL=ReservationList.js.map