import React from 'react';
import { Typography } from '@material-ui/core';
export var DeliveryStatus = function DeliveryStatus(_ref) {
  var message = _ref.message,
      classes = _ref.classes,
      addMessageDate = _ref.addMessageDate,
      showDate = _ref.showDate;
  return React.createElement(React.Fragment, null, message.status !== 'sending' && message.status !== 'error' || message.own === false ? React.createElement(React.Fragment, null, (addMessageDate || showDate) && React.createElement(Typography, {
    variant: "caption",
    className: classes.at
  }, message.at)) : React.createElement(React.Fragment, null, message.status === 'sending' && React.createElement(Typography, {
    variant: "caption",
    className: classes.at
  }, "Enviando..."), message.status === 'error' && React.createElement(Typography, {
    variant: "caption",
    color: "error"
  }, "Erro no envio")));
};
export default DeliveryStatus;