import React from 'react'
import "./Message.css";
function Message({
  message,
  time,
  isReceived = false,
}) {
  return (

    <div className={"message " +(isReceived ? "left" : "")}>
      <div className='message__content'>{message}</div>
      <span className='message__time'>{time}</span>
    </div>
  )
}

export default Message