共用方式為


MessageProps type

呈現單一訊息的屬性。

請參閱 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
}