ButtonsComponent
fun ButtonsComponent(state: UseCaseState, orientation: LibOrientation, selection: BaseSelection, onPositive: () -> Unit, onNegative: () -> Unit, onPositiveValid: Boolean = true)
Buttons component.
Parameters
state
The use-case state.
orientation
The orientation configuration for the dialog.
selection
The selection configuration for the dialog.
onPositive
Listener that is invoked when the positive button is clicked.
onNegative
Listener that is invoked when the negative button is clicked.
onPositiveValid
If the positive button is valid and therefore enabled.