LinkAttachmentContent
Builds a link attachment message, which shows the link image preview, the title of the link as well as its description.
When clicking it, we open the preview link.
Parameters
The state of the attachment, holding the root modifier, the message and the onLongItemClick handler.
The limit of how many lines we show for the link description.
Modifier for styling.
Lambda called when an item gets clicked.
Deprecated
Use the version with the `onItemClick` parameter that accepts a LinkAttachmentClickData.
Replace with
LinkAttachmentContent(attachmentState, linkDescriptionMaxLines, modifier, onItemClick)
Builds a link attachment message, which shows the link image preview, the title of the link as well as its description.
When clicking it, we open the preview link.
Parameters
The state of the attachment, holding the root modifier, the message and the onLongItemClick handler.
The limit of how many lines we show for the link description.
Modifier for styling.
Lambda called when an item gets clicked.