"use strict";

import React from 'react';
import styled from 'styled-components/native';
import { LastRoomMessageContainer, LastRoomMessageName, LastRoomMessageText, ShadeWrapper } from './StyledRoomComponents';
import { Text, View } from 'react-native';
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
const VideoContainer = styled.View`
  position: relative;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 8px;
`;
const Thumbnail = styled.Image`
  width: 20px;
  height: 20px;
  border-radius: 8px;
`;
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 LastMessageVideo = ({
  user,
  location,
  originalName
}) => {
  return /*#__PURE__*/_jsxs(LastRoomMessageContainer, {
    children: [/*#__PURE__*/_jsxs(LastRoomMessageName, {
      children: [user?.name || '', ":"]
    }), /*#__PURE__*/_jsxs(View, {
      style: {
        display: 'flex',
        flexDirection: 'row',
        gap: '4px'
      },
      children: [/*#__PURE__*/_jsxs(VideoContainer, {
        children: [/*#__PURE__*/_jsx(ShadeWrapper, {
          children: /*#__PURE__*/_jsx(Thumbnail, {
            src: location
          })
        }), /*#__PURE__*/_jsx(PlayButton, {
          children: /*#__PURE__*/_jsx(Text, {
            children: "\u25B6"
          })
        })]
      }), /*#__PURE__*/_jsx(LastRoomMessageText, {
        children: originalName || 'file'
      })]
    })]
  });
};
export default LastMessageVideo;
//# sourceMappingURL=LastMessageVideo.js.map