import React , { FC } from "react" ; import { Props , defaultData } from "./types" ; const Message = ( { data = defaultData } ) => ( < div className = "Message" > < h3 style = { { whiteSpace : "pre" } } > { data . messages [ 0 ] } < /h3> < /div>); export default Message ;