RocketChat/Rocket.Chat

View on GitHub
packages/gazzodown/src/blocks/ParagraphBlock.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import type * as MessageParser from '@rocket.chat/message-parser';
import type { ReactElement } from 'react';

import InlineElements from '../elements/InlineElements';

type ParagraphBlockProps = {
    children: MessageParser.Inlines[];
};

const ParagraphBlock = ({ children }: ParagraphBlockProps): ReactElement => (
    <div>
        <InlineElements children={children} />
    </div>
);

export default ParagraphBlock;