"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _StyledRoomComponents = require("./StyledRoomComponents");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
 * Renders the per-room last-message preview when the latest message
 * is a reaction (emoji). The `emoji` field is expected to already be
 * a unicode glyph (the reaction stanza carries the rendered character,
 * not an `:id:`) so we just render it as-is — no emoji-id resolution
 * library needed. If a legacy payload still ships an `:id:`, it
 * renders verbatim instead of crashing.
 */
const LastMessageEmoji = ({
  user,
  emoji
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledRoomComponents.LastRoomMessageContainer, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledRoomComponents.LastRoomMessageName, {
      children: [user?.name || '', ":"]
    }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageText, {
      children: emoji || ''
    })]
  });
};
var _default = exports.default = LastMessageEmoji;
//# sourceMappingURL=LastMessageEmoji.js.map