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/components/ExternalLink.tsx

13 lines
336 B

import { Box } from '@rocket.chat/fuselage';
import React, { FC } from 'react';
type ExternalLinkProps = {
to: string;
};
const ExternalLink: FC<ExternalLinkProps> = ({ children, to, ...props }) =>
<Box is='a' href={to} target='_blank' rel='noopener noreferrer' {...props}>
{children || to}
</Box>;
export default ExternalLink;