The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/views/location/MapViewImage.tsx

21 lines
482 B

import React, { FC } from 'react';
import ExternalLink from '../../components/ExternalLink';
import { useTranslation } from '../../contexts/TranslationContext';
type MapViewImageProps = {
linkUrl: string;
imageUrl: string;
};
const MapViewImage: FC<MapViewImageProps> = ({ linkUrl, imageUrl }) => {
const t = useTranslation();
return (
<ExternalLink to={linkUrl}>
<img src={imageUrl} alt={t('Shared_Location')} />
</ExternalLink>
);
};
export default MapViewImage;