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/Message/Attachments/Attachment/TitleLink.tsx

11 lines
326 B

import React, { FC } from 'react';
import Title from './Title';
const TitleLink: FC<{ link: string; title?: string | undefined }> = ({ link, title }) => (
<Title is='a' href={`${link}?download`} color={undefined} target='_blank' download={title} rel='noopener noreferrer'>
{title}
</Title>
);
export default TitleLink;