import React from "react";
import FeedItem from "./FeedItem";
import ErrorMessage from "../ErrorMessage/ErrorMessage";
const Feed = (props) => {
    return (React.createElement("div", { className: "flow-root" },
        React.createElement("ul", { role: "list" },
            props.items.length === 0 && (React.createElement("div", null,
                React.createElement(ErrorMessage, { message: props.noItemsMessage }))),
            props.items.map((item, index) => {
                return (React.createElement(FeedItem, Object.assign({}, item, { isLastItem: index === props.items.length - 1 })));
            }))));
};
export default Feed;
//# sourceMappingURL=Feed.js.map