Partilhar via


MessageProps type

Props to render a single message.

Consulte MessageRenderer.

type MessageProps = {
  disableEditing?: boolean
  message: Message
  messageContainerStyle?: ComponentSlotStyle
  onDeleteMessage?: (messageId: string) => Promise<void>
  onSendMessage?: (messageId: string) => Promise<void>
  onUpdateMessage?: UpdateMessageCallback
  showDate?: boolean
  strings: MessageThreadStrings
}