"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _StyledRoomComponents = require("./StyledRoomComponents");
var _native = _interopRequireDefault(require("styled-components/native"));
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const PlayButton = _native.default.View`
  position: absolute;
  width: 8px;
  height: 9px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 10px;
  pointer-events: none;
  z-index: 100;
`;
const PhotoContainer = _native.default.View`
  position: relative;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 8px;
  width: 20px;
  height: 20px;
  object-fit: cover;
  pointer-events: none;
`;
const LastAudioMessage = ({
  user,
  body
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledRoomComponents.LastRoomMessageContainer, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageName, {
      children: user?.name ?? ''
    }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
      style: {
        display: 'flex',
        flexDirection: 'row',
        gap: '4px'
      },
      children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PhotoContainer, {
        children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.ShadeWrapper, {
          children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PlayButton, {
            children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
              children: "\u25B6"
            })
          })
        })
      }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageText, {
        children: "audio"
      })]
    })]
  });
};
var _default = exports.default = LastAudioMessage;
//# sourceMappingURL=LastAudioMessage.js.map