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/Body/Paragraph.tsx

13 lines
399 B

import { Paragraph as ASTParagraph } from '@rocket.chat/message-parser';
import React, { FC } from 'react';
import Inline from './Inline';
import { UserMention } from './definitions/UserMention';
const Paragraph: FC<{ value: ASTParagraph['value']; mentions: UserMention[] }> = ({ value = [], mentions }) => (
<p>
<Inline value={value} mentions={mentions} />
</p>
);
export default Paragraph;