import { Loader } from 'components/design/Loader' import { MessageType } from 'contexts/Messages' import { MessageFile } from './MessageFile' import { MessageText } from './MessageText' export interface MessageContentProps { value: string type: MessageType mimetype: string } export const MessageContent: React.FC = (props) => { return ( <>
{props.type === 'text' ? ( ) : props.type === 'file' ? ( ) : ( )}
) }