RtkImageMessage
@deprecated rtk-image-message is deprecated and will be removed soon. Use rtk-image-message-view instead.
A component which renders an image message from chat.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
iconPack | IconPack | ❌ | defaultIconPack | Icon pack |
isContinued | boolean | ✅ | - | Whether the message is continued by same user |
message | ImageMessage | ✅ | - | Text message object |
now | Date | ✅ | - | Date object of now, to calculate distance between dates |
showBubble | boolean | ✅ | - | show message in bubble |
t | RtkI18n | ❌ | useLanguage() | Language |
import { RtkImageMessage } from '@cloudflare/realtimekit-react-ui';
function MyComponent() { return <RtkImageMessage />;}import { RtkImageMessage } from '@cloudflare/realtimekit-react-ui';
function MyComponent() { return ( <RtkImageMessage isContinued={true} message={imagemessage} now={date} /> );}