Prevents multiple rapid clicks by disabling the view temporarily after a click, helping avoid unintended repeated actions.
fun View.onThrottledClick(
throttleDelay: Long = 500L,
onClick: (View) -> Unit
) {
setOnClickListener {
onClick(this)
isClickable = false