I want to disable the arrow Image after it's clicked, and have the option to enable it again after another event.
Image(
painterResource(R.drawable.arrow_back_btn),
contentDescription = "back",
modifier = Modifier
.padding(start = 16.dp, top = 16.dp)
.clickable(onClick = onArrowClick)
.layoutId(R.id.arrowBackBtn),
onArrowClick = {enabled = false}
)
the last line I just improvised - the onArrowClick is recognized but 'enabled' is not