function getSendButtonTooltip(hasUnuploadedFiles2, isStreaming, hasContent, i18n) {
  if (hasUnuploadedFiles2) {
    return i18n.waitingForUpload;
  }
  if (isStreaming) {
    return null;
  }
  if (!hasContent) {
    return i18n.enterMessageOrAttach;
  }
  return i18n.send;
}
function hasUnuploadedFiles(attachments) {
  return attachments.some(
    (att) => att.uploadStatus !== "completed" && att.uploadStatus !== void 0
  );
}
function generateStyles(maxHeight) {
  return {
    "--max-height": `${maxHeight}px`,
    maxWidth: "var(--max-width, 100%)"
  };
}
export {
  generateStyles,
  getSendButtonTooltip,
  hasUnuploadedFiles
};
//# sourceMappingURL=message-utils.js.map
