EquinoxDialog

fun EquinoxDialog(    show: MutableState<Boolean>,     viewModel: EquinoxViewModel? = null,     dialogProperties: DialogProperties = DialogProperties(),     onDismissRequest: () -> Unit = { show.value = false viewModel?.restartRetriever() },     dialogContent: @Composable () -> Unit)

Simply Dialog wrapper to attach the EquinoxViewModel's logic

Parameters

show

: whether show the dialog

viewModel

The viewmodel, if available, used in the context where the Dialog has been invoked, passing it allows to manage in automatically the refresher, so suspend it or restarting it

dialogProperties

The properties to apply to the Dialog

onDismissRequest

The action to execute when the dialog has been dismissed

dialogContent

The content of the Dialog