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

17 lines
358 B

import { Bold as ASTHeading } from '@rocket.chat/message-parser';
import React, { FC } from 'react';
const Heading: FC<{ value: ASTHeading['value'] }> = ({ value = [] }) => (
<h1>
{value.map((block) => {
switch (block.type) {
case 'PLAIN_TEXT':
return block.value;
default:
return null;
}
})}
</h1>
);
export default Heading;