import React from "react";
import PropTypes from "prop-types";
import {
  LocationContainer,
  LocationIcon,
  LocationIconContainer,
  XSText,
} from "./OfferLocation.styled";

// Not being used, but kept for potential future needs
const OfferLocation = (props) => {
  const chat = props.chat;
  return (
    <LocationContainer>
      <LocationIconContainer>
        <LocationIcon />
      </LocationIconContainer>
      <XSText>{chat?.interlocutorData?.location}</XSText>
    </LocationContainer>
  );
};

OfferLocation.propTypes = {
  chat: PropTypes.any,
};

export default OfferLocation;
