"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Comment = void 0;
var react_1 = __importDefault(require("react"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var classnames_1 = __importDefault(require("classnames"));
var Avatar_1 = __importDefault(require("@mui/material/Avatar"));
var Person_1 = __importDefault(require("@mui/icons-material/Person"));
var Comment_module_css_1 = __importDefault(require("./Comment.module.css"));
var Comment = function (_a) {
    var author = _a.author, message = _a.message, time = _a.time, _b = _a.classes, classes = _b === void 0 ? {} : _b;
    return (react_1.default.createElement("div", { className: Comment_module_css_1.default.comment },
        react_1.default.createElement(Avatar_1.default, { className: Comment_module_css_1.default.avatar },
            react_1.default.createElement(Person_1.default, { className: Comment_module_css_1.default.icon })),
        react_1.default.createElement("div", { className: (0, classnames_1.default)(Comment_module_css_1.default.info, classes.messageContainer) },
            react_1.default.createElement("div", { className: Comment_module_css_1.default.firstLine },
                react_1.default.createElement("div", { className: Comment_module_css_1.default.author }, author),
                react_1.default.createElement("span", { className: Comment_module_css_1.default.date }, ui_i18n_1.default.date(time, 'L LT'))),
            react_1.default.createElement("div", { className: Comment_module_css_1.default.text }, message))));
};
exports.Comment = Comment;
