Link Card Container

fun LinkCardContainer(modifier: Modifier = Modifier, viewModel: EquinoxViewModel, link: RefyLink, onClick: (UriHandler) -> Unit = { uriHandler -> uriHandler.openUri(link.reference) }, onLongClick: () -> Unit = { navToUpsertLinkScreen( link = link ) }, showOwnerData: Boolean = false, extraInformation: @Composable () -> Unit? = null, extraButton: @Composable () -> Unit? = null, cancelButton: @Composable RowScope.() -> Unit)

Container used to display a custom card with the details of a RefyLink.

Design inspired by this

Parameters

modifier

The modifier to apply to the component

viewModel

The support viewmodel for the screen

link

The link to display

onClick

The action to execute when the card has been clicked

onLongClick

The action to execute when the card has been long clicked

showOwnerData

Whether show the data of the owner of the link, for example when it is shared in a team

extraInformation

Extra content to display

extraButton

Extra button to handle actions

cancelButton

The button used to remove or delete a link