LinkAttachmentContent
fun LinkAttachmentContent(attachmentState: AttachmentState, linkDescriptionMaxLines: Int, modifier: Modifier = Modifier, onItemClick: (context: Context, Url: String) -> Unit = ::onLinkAttachmentContentClick)
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
attachmentState
The state of the attachment, holding the root modifier, the message and the onLongItemClick handler.
linkDescriptionMaxLines
The limit of how many lines we show for the link description.
modifier
Modifier for styling.
onItemClick
Lambda called when an item gets clicked.