import React, { useContext } from 'react';
import { Paragraph as ParagraphProps } from '@rocket.chat/message-parser';
import Hashtag from '../Hashtag';
import AtMention from '../AtMention';
import Link from './Link';
import Plain from './Plain';
import Bold from './Bold';
import Strike from './Strike';
import Italic from './Italic';
import Emoji from './Emoji';
import InlineCode from './InlineCode';
import Image from './Image';
import MarkdownContext from './MarkdownContext';
interface IParagraphProps {
value: ParagraphProps['value'];
}
const Inline = ({ value }: IParagraphProps): JSX.Element => {
const { useRealName, username, navToRoomInfo, mentions, channels } = useContext(MarkdownContext);
return (
<>
{value.map(block => {
switch (block.type) {
case 'IMAGE':
return ;
case 'PLAIN_TEXT':
return ;
case 'BOLD':
return ;
case 'STRIKE':
return ;
case 'ITALIC':
return ;
case 'LINK':
return ;
case 'MENTION_USER':
return (
);
case 'EMOJI':
return ;
case 'MENTION_CHANNEL':
return ;
case 'INLINE_CODE':
return ;
default:
return null;
}
})}
>
);
};
export default Inline;