"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _native = _interopRequireDefault(require("styled-components/native"));
var _StyledRoomComponents = require("./StyledRoomComponents");
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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 LastMessagePhoto = ({
  user,
  locationPreview,
  originalName
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledRoomComponents.LastRoomMessageContainer, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_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)(_StyledRoomComponents.LastMessageImg, {
            src: locationPreview
          })
        })
      }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledRoomComponents.LastRoomMessageText, {
        children: originalName || 'file'
      })]
    })]
  });
};
var _default = exports.default = LastMessagePhoto;
//# sourceMappingURL=LastMessagePhoto.js.map