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/MapViewFallback.tsx

22 lines
634 B

import { Box, Icon } from '@rocket.chat/fuselage';
import React, { FC } from 'react';
import ExternalLink from '../../components/ExternalLink';
import { useTranslation } from '../../contexts/TranslationContext';
type MapViewFallbackProps = {
linkUrl: string;
};
const MapViewFallback: FC<MapViewFallbackProps> = ({ linkUrl }) => {
const t = useTranslation();
return (
<Box is='span' fontScale='p2' display='inline-flex' alignItems='center' paddingBlock={4}>
<Icon name='map-pin' size={20} color='hint' />
<ExternalLink to={linkUrl}>{t('Shared_Location')}</ExternalLink>
</Box>
);
};
export default MapViewFallback;