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/apps/meteor/client/components/message/content/location/MapViewImage.tsx

19 lines
423 B

import { ExternalLink } from '@rocket.chat/ui-client';
import { useTranslation } from 'react-i18next';
type MapViewImageProps = {
linkUrl: string;
imageUrl: string;
};
const MapViewImage = ({ linkUrl, imageUrl }: MapViewImageProps) => {
const { t } = useTranslation();
return (
<ExternalLink to={linkUrl}>
<img src={imageUrl} alt={t('Shared_Location')} />
</ExternalLink>
);
};
export default MapViewImage;