"use strict";

import React from 'react';
import { LastRoomMessageContainer, LastRoomMessageName, LastRoomMessageText } from './StyledRoomComponents';
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
/**
 * 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__*/_jsxs(LastRoomMessageContainer, {
    children: [/*#__PURE__*/_jsxs(LastRoomMessageName, {
      children: [user?.name || '', ":"]
    }), /*#__PURE__*/_jsx(LastRoomMessageText, {
      children: emoji || ''
    })]
  });
};
export default LastMessageEmoji;
//# sourceMappingURL=LastMessageEmoji.js.map