"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpandedComments = void 0;
var react_1 = __importDefault(require("react"));
var Comment_1 = require("../Comment");
var styles_1 = require("./styles");
var ExpandedComments = function (_a) {
    var comments = _a.comments;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement(react_1.default.Fragment, null, comments.map(function (_a) {
        var author = _a.author, id = _a.id, message = _a.message, time = _a.time;
        return (react_1.default.createElement(Comment_1.Comment, { classes: { messageContainer: styles.messageContainer }, key: id, author: author, message: message, time: time }));
    })));
};
exports.ExpandedComments = ExpandedComments;
