import React from 'react' ; import Message from './Message' ; import { MessageType } from '../../../shared/shared-types' ; import { ConversationType } from './MessageList' ; type RenderMessageProps = { message : MessageType ; conversationType : ConversationType ; } ; export const MessageWrapper = ( props ) => { return ( < li > < Message { ... props } / > < /li>); } ;