"use strict";

import React from 'react';
import { LastRoomMessageContainer, LastRoomMessageName, LastRoomMessageText, ShadeWrapper } from './StyledRoomComponents';
import styled from 'styled-components/native';
import { Text, View } from 'react-native';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const PlayButton = styled.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 = styled.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__*/_jsxs(LastRoomMessageContainer, {
    children: [/*#__PURE__*/_jsx(LastRoomMessageName, {
      children: user?.name ?? ''
    }), /*#__PURE__*/_jsxs(View, {
      style: {
        display: 'flex',
        flexDirection: 'row',
        gap: '4px'
      },
      children: [/*#__PURE__*/_jsx(PhotoContainer, {
        children: /*#__PURE__*/_jsx(ShadeWrapper, {
          children: /*#__PURE__*/_jsx(PlayButton, {
            children: /*#__PURE__*/_jsx(Text, {
              children: "\u25B6"
            })
          })
        })
      }), /*#__PURE__*/_jsx(LastRoomMessageText, {
        children: "audio"
      })]
    })]
  });
};
export default LastAudioMessage;
//# sourceMappingURL=LastAudioMessage.js.map